diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index b0cbaf9..0000000 --- a/.drone.yml +++ /dev/null @@ -1,21 +0,0 @@ -kind: pipeline -type: docker -name: default - -steps: -- name: build - image: golang - commands: - - go build - - go test ./... - -- name: publish - image: plugins/docker - settings: - repo: harnesscommunity/drone-helm-chart-container-registry - auto_tag: true - dockerfile: docker/Dockerfile - username: - from_secret: docker_username - password: - from_secret: docker_password diff --git a/.drone.yml.multiarch b/.drone.yml.multiarch deleted file mode 100644 index 4a73b32..0000000 --- a/.drone.yml.multiarch +++ /dev/null @@ -1,60 +0,0 @@ -# if you want to publish a multi-architecture image, replace the -# contents of the .drone.yml file with the contents of this file - -kind: pipeline -type: docker -name: default - -steps: -- name: build - image: golang - commands: - - go build - - go test ./... - -- name: publish - image: plugins/docker - settings: - repo: harnesscommunity/drone-helm-chart-container-registry - auto_tag: true - auto_tag_suffix: linux-amd64 - dockerfile: docker/Dockerfile - username: - from_secret: docker_username - password: - from_secret: docker_password - -- name: publish_arm - image: plugins/docker - settings: - repo: harnesscommunity/drone-helm-chart-container-registry - auto_tag: true - auto_tag_suffix: linux-arm - dockerfile: docker/Dockerfile.linux.arm - username: - from_secret: docker_username - password: - from_secret: docker_password - -- name: publish_arm - image: plugins/docker - settings: - repo: harnesscommunity/drone-helm-chart-container-registry - auto_tag: true - auto_tag_suffix: linux-arm64 - dockerfile: docker/Dockerfile.linux.arm64 - username: - from_secret: docker_username - password: - from_secret: docker_password - -- name: manifest - image: plugins/manifest - settings: - spec: docker/manifest.tmpl - auto_tag: true - ignore_missing: true - password: - from_secret: docker_password - username: - from_secret: docker_username diff --git a/README.md b/README.md index 0517ec1..9cd6715 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# drone-helm-chart-container-registry +# drone-helm-push - [Synopsis](#Synopsis) - [Parameters](#Paramaters) @@ -43,7 +43,7 @@ For more details check the [examples](#Examples) section. ## Plugin Image -The plugin `harnesscommunity/drone-helm-chart-container-registry` is available for the following architectures: +The plugin `plugins/helm-push` is available for the following architectures: | OS | Tag | | ------------- | ---------------------------- | @@ -63,7 +63,7 @@ The plugin `harnesscommunity/drone-helm-chart-container-registry` is available f identifier: helm_chart_docker spec: connectorRef: harness-docker-connector - image: harnesscommunity/drone-helm-chart-container-registry:linux-amd64 + image: plugins/helm-push settings: registry_url: registry.hub.docker.com registry_username: <+variable.docker_username> @@ -77,7 +77,7 @@ The plugin `harnesscommunity/drone-helm-chart-container-registry` is available f identifier: helm_chart_gar spec: connectorRef: harness-docker-connector - image: harnesscommunity/drone-helm-chart-container-registry:linux-amd64 + image: plugins/helm-push settings: registry_url: LOCATION-docker.pkg.dev registry_username: oauth2accesstoken diff --git a/docker/manifest.tmpl b/docker/manifest.tmpl index e94dd2d..d6343f8 100644 --- a/docker/manifest.tmpl +++ b/docker/manifest.tmpl @@ -1,4 +1,4 @@ -image: harnesscommunity/drone-helm-chart-container-registry:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} +image: plugins/helm-push:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} {{#if build.tags}} tags: {{#each build.tags}} @@ -7,18 +7,18 @@ tags: {{/if}} manifests: - - image: harnesscommunity/drone-helm-chart-container-registry:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64 + image: plugins/helm-push:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64 platform: architecture: amd64 os: linux - - image: harnesscommunity/drone-helm-chart-container-registry:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64 + image: plugins/helm-push:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64 platform: variant: v8 architecture: arm64 os: linux - - image: harnesscommunity/drone-helm-chart-container-registry:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-amd64 + image: plugins/helm-push:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}windows-amd64 platform: architecture: amd64 os: windows