From 434c51f6d7d9050310bd9a3770a4e05845074330 Mon Sep 17 00:00:00 2001 From: Arnaud Mengus <44212923+isontheline@users.noreply.github.com> Date: Thu, 6 Jun 2024 06:35:42 +0000 Subject: [PATCH] Test Docker Image tag version --- .github/workflows/build.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 30d14f0b..45786481 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -58,12 +58,11 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: | - dragon-okinawa/dragon + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | type=ref,event=branch - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} + type=ref,event=tag - name: Build and push Docker image uses: docker/build-push-action@v5 @@ -71,8 +70,7 @@ jobs: context: . platforms: linux/amd64,linux/arm64 push: true - tags: | - ghcr.io/dragon-okinawa/dragon:${{ github.ref_name == 'main' && 'latest' || github.ref_name }} + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - name: Push Release