Skip to content

Commit

Permalink
Fix image path of untagged builds for forks
Browse files Browse the repository at this point in the history
  • Loading branch information
mologie committed Sep 26, 2022
1 parent e2a8ff4 commit 67a6b66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ghcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
# publish tags to talos-vmtoolsd:version and talos-vmtoolsd:latest
# publish branches to talos-vmtoolsd-unstable:branch
# based on https://medium.com/cooking-with-azure/4e39700ae14c
# requires GitHub actions access to packages to be configured
- name: Publish
run: |
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
Expand All @@ -35,7 +35,7 @@ jobs:
docker push $IMGPATH:$VERSION
docker push $IMGPATH:latest
else
IMGPATH=ghcr.io/mologie/talos-vmtoolsd-unstable
IMGPATH=ghcr.io/${{ github.repository }}-unstable
[ "$VERSION" == "master" ] && VERSION=latest
docker build . -t $IMGPATH:$VERSION
docker push $IMGPATH:$VERSION
Expand Down

0 comments on commit 67a6b66

Please sign in to comment.