Skip to content

Commit

Permalink
Merge pull request #258 from chrisdoherty4/chore/manual-latest-trigger
Browse files Browse the repository at this point in the history
Add manual trigger for updating the latest tag
  • Loading branch information
chrisdoherty4 committed May 12, 2023
2 parents bbf9e13 + ae5268a commit 678f511
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# an associated docker image.
name: Latest
on:
workflow_dispatch: {}
release:
types: [published, edited]

Expand All @@ -20,6 +21,6 @@ jobs:
steps:
- run: |
LATEST=$(curl -H "Accept: application/json" https://api.github.com/repos/tinkerbell/hegel/releases/latest | jq .name -r)
docker pull {{ env.IMAGE }}:$LATEST
docker tag {{ env.IMAGE }}:$LATEST {{ env.IMAGE }}:latest
docker push {{ env.IMAGE }}:latest
docker pull ${{ env.IMAGE }}:$LATEST
docker tag ${{ env.IMAGE }}:$LATEST ${{ env.IMAGE }}:latest
docker push ${{ env.IMAGE }}:latest

0 comments on commit 678f511

Please sign in to comment.