From 85a9bebfa0627e1d44db8422c6e7c10a421e4e6f Mon Sep 17 00:00:00 2001 From: Hannes Giesenow Date: Wed, 20 Dec 2023 14:44:37 +0100 Subject: [PATCH] Prevent concurrent build of latest --- .github/workflows/docker.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index d6ec7cce7fa..22739454781 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -6,6 +6,7 @@ on: - "v*.*.*" branches: - "master" + - "docker-setup" env: REGISTRY: ghcr.io @@ -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