Skip to content

Commit

Permalink
fix: repo owner in build action
Browse files Browse the repository at this point in the history
  • Loading branch information
SchutteJan committed Jul 7, 2024
1 parent 03219ef commit e5873c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:

env:
IMAGE_NAME: kroegen
# Cannot use 'github.repository_owner' because it is not lowercase
REPO_OWNER: schuttejan

jobs:

Expand All @@ -25,7 +27,7 @@ jobs:
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Push image
run: |
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
IMAGE_ID=ghcr.io/$REPO_OWNER/$IMAGE_NAME
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
[ "$VERSION" == "main" ] && VERSION=latest
Expand Down

0 comments on commit e5873c7

Please sign in to comment.