Update docker-release.yml

This commit is contained in:
tooomm 2026-04-30 07:28:28 +02:00 committed by GitHub
parent 0c5573829a
commit 66423c4dc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,7 +3,7 @@ name: Build Docker Image
on: on:
release: release:
types: types:
- released - released # publishing of stable releases
pull_request: pull_request:
branches: branches:
- master - master
@ -11,10 +11,6 @@ on:
- '.github/workflows/docker-release.yml' - '.github/workflows/docker-release.yml'
- 'Dockerfile' - 'Dockerfile'
permissions:
contents: read
packages: write
# Cancel earlier, unfinished runs of this workflow on the same branch (unless on release) # Cancel earlier, unfinished runs of this workflow on the same branch (unless on release)
concurrency: concurrency:
group: "${{ github.workflow }} @ ${{ github.ref_name }}" group: "${{ github.workflow }} @ ${{ github.ref_name }}"
@ -23,14 +19,18 @@ concurrency:
jobs: jobs:
docker: docker:
name: amd64 & arm64 name: amd64 & arm64
if: ${{ github.repository_owner == 'Cockatrice' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v6 uses: actions/checkout@v6
- name: Docker metadata - name: Docker metadata
if: ${{ github.repository_owner == 'Cockatrice' }}
id: metadata id: metadata
uses: docker/metadata-action@v6 uses: docker/metadata-action@v6
with: with: