From 1ce2e5f3e10d7992ffaafa478b2a410aced20d96 Mon Sep 17 00:00:00 2001 From: Leonardo Luz Almeida Date: Thu, 10 Oct 2024 11:37:35 -0400 Subject: [PATCH] Upload install yaml (#37) * chore: publish the install.yaml in the release Signed-off-by: Leonardo Luz Almeida * minor fix Signed-off-by: Leonardo Luz Almeida * fix Signed-off-by: Leonardo Luz Almeida --------- Signed-off-by: Leonardo Luz Almeida --- .gitignore | 1 + .goreleaser.yaml | 12 +++--------- scripts/manifests-release.sh | 4 ++-- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 953fdd9..589f6f7 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,4 @@ ui/extension.tar dist/ dist-goreleaser/ bin/ +install.yaml diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 15a19e4..3e1818b 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -5,14 +5,13 @@ project_name: argocd-ephemeral-access version: 2 -dist: bin/goreleaser - before: hooks: - go mod tidy - go mod download - make build-ui - make manifests-release IMAGE_TAG={{ .Tag }} + - rm -rf dist builds: - id: ephemeral-access @@ -62,13 +61,6 @@ archives: format_overrides: - goos: windows format: zip - - id: manifests - format: binary # necessary to publish the yaml as is - name_template: install.yaml - meta: true - files: - - src: dist/install.yaml - strip_parent: true - id: ui-extension format: gz name_template: extension.tar @@ -84,6 +76,8 @@ checksum: release: prerelease: auto draft: false + extra_files: + - glob: ./install.yaml header: | ## argocd-ephemeral-access {{ .Date }} diff --git a/scripts/manifests-release.sh b/scripts/manifests-release.sh index 0361ee8..76946d9 100755 --- a/scripts/manifests-release.sh +++ b/scripts/manifests-release.sh @@ -20,5 +20,5 @@ IMAGE_QUAY="quay.io/argoprojlabs/argocd-ephemeral-access:$IMAGE_TAG" $KUSTOMIZE version cd ${SRCROOT}/config/default && $KUSTOMIZE edit set image argoproj-labs/argocd-ephemeral-access=${IMAGE_QUAY} -echo "${AUTOGENMSG}" > "${SRCROOT}/dist/install.yaml" -$KUSTOMIZE build "${SRCROOT}/config/default" >> "${SRCROOT}/dist/install.yaml" +echo "${AUTOGENMSG}" > "${SRCROOT}/install.yaml" +$KUSTOMIZE build "${SRCROOT}/config/default" >> "${SRCROOT}/install.yaml"