Skip to content

Commit

Permalink
Updating workflow for Docker Tags (#2408)
Browse files Browse the repository at this point in the history
* adding workflow to upadte docker tag for api

* making this an action and calling it from our staging workflow

* moving this to the main workflow
  • Loading branch information
P0NDER0SA authored Jan 9, 2025
1 parent 6c5789a commit 94c440c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,16 @@ jobs:
kubectl set image deployment.apps/notify-celery-email-send-scalable notify-celery-email-send-scalable=$DOCKER_SLUG:$DOCKER_TAG -n=notification-canada-ca --kubeconfig=$HOME/.kube/config
- name: Update images in staging (Helm)
uses: ./.github/actions/call-manifests-update-docker-tag.yaml
env:
GITHUB_SHA: ${{ github.sha }}
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":"API","docker_tag":"${{ env.DOCKER_TAG }}"}}'
- name: my-app-install token
id: notify-pr-bot
Expand Down

0 comments on commit 94c440c

Please sign in to comment.