Fix GitHub Actions workflow YAML compatibility

This commit is contained in:
Nate Emmert committed 2026-03-13 09:40:51 -04:00
1 parent ea006795b0
commit cb966beca2
1 file changed
+10 -10
+10 -10
View File
@@ -9,11 +9,11 @@ on:
- main - main
tags: tags:
- 'v*' - 'v*'
workflow_dispatch: workflow_dispatch: {}
env: env:
REGISTRY: ghcr.io REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }} IMAGE_NAME: "${{ github.repository }}"
jobs: jobs:
build: build:
@@ -29,18 +29,18 @@ jobs:
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- name: Log in to GHCR - name: Log in to GHCR
if: github.event_name != 'pull_request' if: "${{ github.event_name != 'pull_request' }}"
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ env.REGISTRY }} registry: "${{ env.REGISTRY }}"
username: ${{ github.actor }} username: "${{ github.actor }}"
password: ${{ secrets.GITHUB_TOKEN }} password: "${{ secrets.GITHUB_TOKEN }}"
- name: Extract image metadata - name: Extract image metadata
id: meta id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} images: "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
tags: | tags: |
type=ref,event=branch type=ref,event=branch
type=ref,event=tag type=ref,event=tag
@@ -53,8 +53,8 @@ jobs:
context: . context: .
file: ./Dockerfile file: ./Dockerfile
platforms: linux/amd64 platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }} push: "${{ github.event_name != 'pull_request' }}"
tags: ${{ steps.meta.outputs.tags }} tags: "${{ steps.meta.outputs.tags }}"
labels: ${{ steps.meta.outputs.labels }} labels: "${{ steps.meta.outputs.labels }}"
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max