Skip to content

Commit

Permalink
Build Docker Image with Branch Name
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkrellenstein committed Dec 17, 2024
1 parent 56cc3ac commit d4d4a52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
elif [[ ${{ github.event_name }} == 'push' && ${{ github.ref }} == 'refs/heads/develop' ]]; then
export VERSION=develop
else
export VERSION=${{ github.sha }}
export VERSION=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g'
fi
docker build -t $DOCKER_REPO:$VERSION .
docker tag $DOCKER_REPO:$VERSION $DOCKER_REPO:latest
Expand Down

0 comments on commit d4d4a52

Please sign in to comment.