Call Manifests Update Docker Tag #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | |
COMPONENT: "ADMIN" | |
- 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":"${{ env.COMPONENT }}","docker_tag":"${{ env.DOCKER_TAG }}"}}' |