Skip to content

Commit

Permalink
Test Docker Image tag version
Browse files Browse the repository at this point in the history
  • Loading branch information
isontheline committed Jun 6, 2024
1 parent 3b344d5 commit 434c51f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,19 @@ 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
with:
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
Expand Down

0 comments on commit 434c51f

Please sign in to comment.