Skip to content

Commit 252ff0a

Browse files
authored
ci: automate roll out when releasing new packages (#92)
* ci: automate roll out when releasing new packages * ci: check for ref
1 parent 36badf1 commit 252ff0a

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/push.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,32 @@ jobs:
3838

3939
- name: Push xpkg
4040
run: make push
41+
42+
deploy:
43+
name: Trigger Argo Workflow Deployment
44+
runs-on: ubuntu-latest
45+
needs: build
46+
if: startsWith(github.ref, 'refs/tags/v')
47+
permissions:
48+
contents: read
49+
id-token: write
50+
pull-requests: write
51+
52+
steps:
53+
- name: Extract version
54+
id: version
55+
run: |
56+
VERSION="${GITHUB_REF#refs/tags/}"
57+
echo "version=${VERSION}" >> $GITHUB_OUTPUT
58+
echo "Deploying version: ${VERSION}"
59+
60+
- name: Trigger Argo Workflow
61+
id: trigger-argo-workflow
62+
uses: grafana/shared-workflows/actions/trigger-argo-workflow@e100806688f1209051080dfea5719fbbd1d18cc0 # trigger-argo-workflow/v1.2.1
63+
with:
64+
namespace: platform-monitoring-cd
65+
workflow_template: grafana-crossplane-libsonnet-packages
66+
parameters: |
67+
dockertag=${{ steps.version.outputs.version }}
68+
prCommentContext= Triggered by release ${{ steps.version.outputs.version }} in crossplane/grafana-crossplane-libsonnet
69+
commit_author=grafana-delivery-bot

0 commit comments

Comments
 (0)