Skip to content

Commit

Permalink
ci: add version to docker tags
Browse files Browse the repository at this point in the history
  • Loading branch information
thalesmg committed Oct 23, 2024
1 parent 7c64964 commit 564ca5d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Docker Metadata action
uses: docker/[email protected]
with:
images: |
ghcr.io/${{ github.repository }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
- uses: docker/setup-buildx-action@v2
- uses: docker/setup-qemu-action@v2
- uses: docker/login-action@v2
Expand All @@ -24,7 +34,8 @@ jobs:
username: ${{ github.actor }}
password: ${{ github.token }}

- uses: docker/build-push-action@v3
- name: Build and push Docker images
uses: docker/[email protected]
with:
push: true
platforms: linux/amd64,linux/arm64
Expand Down

0 comments on commit 564ca5d

Please sign in to comment.