Skip to content

Commit

Permalink
Merge branch 'main' into fix/slack-webhook-calls-not-passing-data
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewleith authored Jan 9, 2025
2 parents de9d8d7 + 23a155b commit 45e4bb8
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/call-manifests-update-docker-tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Call Manifests Update Docker Tag

on:
workflow_dispatch:
push:
branches:
- main

jobs:
update-docker-tag-in-manifests:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set Docker Tag
run: echo "DOCKER_TAG=${GITHUB_SHA::7}" >> $GITHUB_ENV
env:
GITHUB_SHA: ${{ github.sha }}

- name: Trigger repository_dispatch
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.MANIFESTS_WORKFLOW_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/cds-snc/notification-manifests/dispatches \
-d '{"event_type":"update-docker-image","client_payload":{"component":"ADMIN","docker_tag":"${{ env.DOCKER_TAG }}"}}'

0 comments on commit 45e4bb8

Please sign in to comment.