From 09001c52d6a3f9de2654f7601de6568d5bbfa855 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 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index d6ec7cce7fa..77d60f8ccd3 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -61,14 +61,17 @@ 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=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