Skip to content

Commit

Permalink
chore: publish the install.yaml in the release
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Luz Almeida <[email protected]>
  • Loading branch information
leoluz committed Oct 10, 2024
1 parent a95c212 commit fbd223b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ ui/extension.tar
dist/
dist-goreleaser/
bin/
install.yaml
19 changes: 9 additions & 10 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 build-ui
- make manifests-release IMAGE_TAG={{ .Tag }}
- rm -rf dist

builds:
- id: ephemeral-access
Expand Down Expand Up @@ -62,13 +61,11 @@ 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: manifests
# format: binary
# name_template: install
# files:
# - src: install.yaml
- id: ui-extension
format: gz
name_template: extension.tar
Expand All @@ -84,6 +81,8 @@ checksum:
release:
prerelease: auto
draft: false
extra_files:
- glob: ./install.yaml
header: |
## argocd-ephemeral-access
{{ .Date }}
Expand Down
4 changes: 2 additions & 2 deletions scripts/manifests-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit fbd223b

Please sign in to comment.