Skip to content

Commit

Permalink
cicd: always publish container
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Van Bouwel committed Nov 26, 2024
1 parent 57dcc9d commit f5b1440
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/container_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
push:
tags:
- v*
branches:
- "**"
env:
IMAGE_NAME: fakes3pp

Expand Down Expand Up @@ -40,6 +42,8 @@ jobs:
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# This uses the Docker `latest` tag convention.
[ "$VERSION" == "main" ] && VERSION=latest
# Use commit hash if no other applicable tag
[ "$VERSION" != "latest" ] && [[ "${{ github.ref }}" != "refs/tags/"* ]] && VERSION="commit-$GITHUB_SHA"
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
Expand Down

0 comments on commit f5b1440

Please sign in to comment.