Skip to content

Commit

Permalink
.github: fix VERSION check and default to edge
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Wiberg <[email protected]>
  • Loading branch information
troglobit committed Nov 4, 2023
1 parent b129807 commit 144d7db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
[ "$VERSION" == "main" ] && VERSION=edge
[[ "$VERSION" =~ ^v.* ]] || VERSION=edge
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
ls -l
Expand Down

0 comments on commit 144d7db

Please sign in to comment.