Merge pull request #14 from harness-community/ECOE-7

non breaking changes
This commit is contained in:
OP (oppenheimer)
2024-02-01 17:56:49 +05:30
committed by GitHub
4 changed files with 8 additions and 89 deletions
-21
View File
@@ -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
-60
View File
@@ -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
+4 -4
View File
@@ -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
+4 -4
View File
@@ -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