Skip to content

Commit

Permalink
cleanup!
Browse files Browse the repository at this point in the history
  • Loading branch information
matifali committed Sep 26, 2023
1 parent de81041 commit 9171c16
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
15 changes: 0 additions & 15 deletions jfrog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,6 @@ module "jfrog" {
}
```

### Configure npm to use Artifactory with yarn

```hcl
module "jfrog" {
source = "https://registry.coder.com/modules/jfrog"
agent_id = coder_agent.example.id
jfrog_host = "YYYY.jfrog.io"
artifactory_access_token = var.artifactory_access_token # An admin access token
package_managers = {
"npm": "npm-local",
}
npm_package_manager = "yarn"
}
## Authentication

Get a JFrog access token from your Artifactory instance. The token must have admin permissions. It is recommended to store the token in a secret terraform variable.
Expand Down
7 changes: 0 additions & 7 deletions jfrog/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ For example:
EOF
}

variable "npm_package_manager" {
type = string
description = "The name of the npm repository in Artifactory."
default = "npm"
}

data "coder_workspace" "me" {}

resource "coder_script" "jfrog" {
Expand All @@ -71,7 +65,6 @@ resource "coder_script" "jfrog" {
REPOSITORY_NPM : lookup(var.package_managers, "npm", ""),
REPOSITORY_GO : lookup(var.package_managers, "go", ""),
REPOSITORY_PYPI : lookup(var.package_managers, "pypi", ""),
NPM_PACKAGE_MANAGER : var.npm_package_manager,
})
run_on_start = true
}

0 comments on commit 9171c16

Please sign in to comment.