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 652ca54
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,27 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v2
- uses: docker/setup-qemu-action@v2
- uses: docker/login-action@v2
- name: Docker Metadata action
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
images: |
ghcr.io/${{ github.repository }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
- uses: docker/build-push-action@v3
with:
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/${{ github.repository }}
# - uses: docker/setup-buildx-action@v2
# - uses: docker/setup-qemu-action@v2
# - uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ github.token }}

# - name: Build and push Docker images
# uses: docker/[email protected]
# with:
# push: true
# platforms: linux/amd64,linux/arm64
# tags: ghcr.io/${{ github.repository }}

0 comments on commit 652ca54

Please sign in to comment.