diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml index bfbcfbd..48ce584 100644 --- a/.github/workflows/dockerimage.yml +++ b/.github/workflows/dockerimage.yml @@ -41,7 +41,7 @@ jobs: type=semver,pattern={{major}} type=sha - uses: docker/login-action@v3 - if: ${{ github.ref == 'refs/heads/main' }} + if: github.ref == 'refs/heads/main' with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} @@ -56,7 +56,7 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - name: Sign the published Docker image - if: ${{ github.ref == 'refs/heads/main' }} + if: github.ref == 'refs/heads/main' env: TAGS: ${{ steps.meta.outputs.tags }} DIGEST: ${{ steps.build-and-push.outputs.digest }} @@ -74,7 +74,7 @@ jobs: working-directory: ${{ env.IMAGE }} run: docker compose -f docker-compose.test.yml run sut - name: Set RELEASE - if: ${{ github.ref == 'refs/heads/main' }} + if: github.ref == 'refs/heads/main' run: | # shellcheck disable=SC2086 RC="$(\grep ${IMAGE}/Dockerfile -e '^FROM' | \head -n 1 | \sed -e 's/^.*://')" @@ -82,7 +82,7 @@ jobs: \echo "RELEASE=${RC}" >> "${GITHUB_ENV}" fi - name: Trigger release - if: ${{ env.RELEASE != '' }} + if: env.RELEASE != '' uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}