Skip to content

chore(deps): bump docker/metadata-action from 5 to 6 #8

chore(deps): bump docker/metadata-action from 5 to 6

chore(deps): bump docker/metadata-action from 5 to 6 #8

Workflow file for this run

name: Release Docker Image

Check failure on line 1 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

(Line: 38, Col: 13): A sequence was not expected
on:
push:
tags:
- 'v*' # Trigger on version tags like v1.0.0
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write # Required to push to GitHub Container Registry
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v6
with:
images: ghcr.io/${{ github.repository }}
tags:
- type=semver,pattern={{version}} # Use the tag version
- type=semver,pattern={{major}}.{{minor}} # Also tag major.minor
- type=semver,pattern={{major}} # Also tag major
- type=sha,prefix= # Also tag with commit SHA
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max