diff --git a/.github/workflows/publish_docker_image.yml b/.github/workflows/publish_docker_image.yml index 014c35c9e..36b4b11fb 100644 --- a/.github/workflows/publish_docker_image.yml +++ b/.github/workflows/publish_docker_image.yml @@ -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