Skip to content

Commit

Permalink
Upload install yaml (#37)
Browse files Browse the repository at this point in the history
* chore: publish the install.yaml in the release

Signed-off-by: Leonardo Luz Almeida <[email protected]>

* minor fix

Signed-off-by: Leonardo Luz Almeida <[email protected]>

* fix

Signed-off-by: Leonardo Luz Almeida <[email protected]>

---------

Signed-off-by: Leonardo Luz Almeida <[email protected]>
  • Loading branch information
leoluz authored Oct 10, 2024
1 parent a95c212 commit 1ce2e5f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 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
12 changes: 3 additions & 9 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 manifests-release IMAGE_TAG={{ .Tag }}
- rm -rf dist

builds:
- id: ephemeral-access
Expand Down Expand Up @@ -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
Expand All @@ -84,6 +76,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 1ce2e5f

Please sign in to comment.