Skip to content

Commit 538ec02

Browse files
committed
auto-update install manifest
1 parent 75b4041 commit 538ec02

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/release.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,30 @@ jobs:
3232
with:
3333
fetch-depth: 0
3434
token: ${{ secrets.GITHUB_TOKEN }}
35-
35+
- name: Update plugin.yaml image tag
36+
id: manifests
37+
uses: mikefarah/yq@master
38+
with:
39+
cmd: yq -i '.spec.sidecar.container.image = "crenshawdotdev/argocd-executor-plugin:v0.0.1"' manifests/plugin.yaml
40+
- name: Update install manifest
41+
run: |
42+
# Download the binary
43+
curl -sLO https://github.com/argoproj/argo-workflows/releases/download/v3.4.3/argo-darwin-amd64.gz
44+
gunzip argo-darwin-amd64.gz
45+
chmod +x argo-darwin-amd64
46+
argo-darwin-amd64 executor-plugin build ./manifests
3647
- name: Push release tag
3748
run: |
3849
set -ue
3950
4051
git config --global user.email "${GIT_EMAIL}"
4152
git config --global user.name "${GIT_USERNAME}"
53+
54+
git commit manifests/ -m "Bump version to $RELEASE_TAG"
55+
git push origin HEAD
4256
4357
git tag ${RELEASE_TAG}
4458
git push origin ${RELEASE_TAG} --force
45-
4659
- name: Create GitHub release
4760
uses: softprops/action-gh-release@v1
4861
env:

0 commit comments

Comments
 (0)