diff --git a/.github/workflows/container-image.yml b/.github/workflows/container-image.yml index 1eeef1f..8bc24fd 100644 --- a/.github/workflows/container-image.yml +++ b/.github/workflows/container-image.yml @@ -9,11 +9,11 @@ on: - main tags: - 'v*' - workflow_dispatch: + workflow_dispatch: {} env: REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} + IMAGE_NAME: "${{ github.repository }}" jobs: build: @@ -29,18 +29,18 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Log in to GHCR - if: github.event_name != 'pull_request' + if: "${{ github.event_name != 'pull_request' }}" uses: docker/login-action@v3 with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + registry: "${{ env.REGISTRY }}" + username: "${{ github.actor }}" + password: "${{ secrets.GITHUB_TOKEN }}" - name: Extract image metadata id: meta uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + images: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}" tags: | type=ref,event=branch type=ref,event=tag @@ -53,8 +53,8 @@ jobs: context: . file: ./Dockerfile platforms: linux/amd64 - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} + push: "${{ github.event_name != 'pull_request' }}" + tags: "${{ steps.meta.outputs.tags }}" + labels: "${{ steps.meta.outputs.labels }}" cache-from: type=gha cache-to: type=gha,mode=max