Skip to content

Commit

Permalink
ci: send image digest to kubernetes-hepdata repo on every deploy - fo…
Browse files Browse the repository at this point in the history
…r autodeploy

Signed-off-by: jimil desai <[email protected]>
  • Loading branch information
jimil749 committed Jan 22, 2025
1 parent 730632c commit d210c55
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,17 @@ jobs:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
run: |
./build-and-deploy.sh
# extract image digest
IMAGE="hepdata/hepdata"
TAG="${CI_TAG:-$(git describe --always --tags)}"
DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' ${IMAGE}:${TAG} | cut -d'@' -f2)
echo "Image Digest: $DIGEST"
echo "DIGEST=${DIGEST}" >> "$GITHUB_ENV"
- name: send event
uses: cern-sis/gh-workflows/.github/actions/[email protected]
with:
repo: cern-sis/kubernetes-hepdata
event-type: update
images: |
hepdata/hepdata@$DIGEST
token: ${{ secrets.PAT_FIRE_EVENTS_ON_CERN_SIS_KUBERNETES }}

0 comments on commit d210c55

Please sign in to comment.