Skip to content

Commit

Permalink
Prevent concurrent build of latest
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannes Giesenow committed Dec 20, 2023
1 parent b6dd57c commit 85a9beb
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- "v*.*.*"
branches:
- "master"
- "docker-setup"

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -61,14 +62,18 @@ jobs:
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
flavor: |
latest=false
suffix=${{ matrix.php-suffix }}
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LOWER }}
# "edge" will only build from master, "semver" only from tags
tags: |
type=edge,branch=master,suffix=${{ matrix.php-suffix }}
type=semver,pattern={{version}},suffix=${{ matrix.php-suffix }}
type=semver,pattern={{major}}.{{minor}},suffix=${{ matrix.php-suffix }}
type=semver,pattern={{major}},suffix=${{ matrix.php-suffix }}
type=semver,pattern=latest,suffix=${{ matrix.php-suffix }}
type=edge,branch=master
type=edge,branch=docker-setup
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=semver,pattern=latest
- name: Build and push Docker image
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56
Expand Down

0 comments on commit 85a9beb

Please sign in to comment.