From ea81df185cb3a3503614dbd8e9a0a685200ec1c1 Mon Sep 17 00:00:00 2001 From: shibafu Date: Wed, 6 Dec 2023 21:26:56 +0900 Subject: [PATCH] =?UTF-8?q?docker/metadata-action=E3=81=AEtags=E3=82=92sem?= =?UTF-8?q?ver=E5=90=91=E3=81=91=E3=81=AB=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-image.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 7c93b41f..561546b8 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -34,6 +34,11 @@ jobs: id: meta_foundation with: images: ghcr.io/${{ github.repository }}-foundation + tags: | + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} - uses: docker/build-push-action@v5 with: @@ -49,6 +54,11 @@ jobs: id: meta_nginx with: images: ghcr.io/${{ github.repository }}-nginx + tags: | + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} - uses: docker/build-push-action@v5 with: @@ -66,6 +76,11 @@ jobs: id: meta_php with: images: ghcr.io/${{ github.repository }}-php + tags: | + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} - uses: docker/build-push-action@v5 with: