diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index af2186af43..606d5396da 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - release/** tags: - "v*.*.*" @@ -34,8 +35,7 @@ jobs: # login to ghcr.io echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') - [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//') + VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,' | sed -e 's/^v//') [ "$VERSION" == "main" ] && VERSION=latest echo "VERSION: $VERSION"