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