Skip to content

Commit

Permalink
chore: latest just from tags
Browse files Browse the repository at this point in the history
  • Loading branch information
davidecavestro committed Jun 20, 2024
1 parent e177056 commit 86227a2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,22 @@ jobs:
push: true
tags: |
davidecavestro/gphotos-cdp:${{ github.ref_name }}
davidecavestro/gphotos-cdp:latest
ghcr.io/davidecavestro/gphotos-cdp:${{ github.ref_name }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Push latest image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
davidecavestro/gphotos-cdp:latest
ghcr.io/davidecavestro/gphotos-cdp:latest
cache-from: type=gha
cache-to: type=gha,mode=max
if: startsWith(github.ref, 'refs/tags/')

- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v4
Expand Down

0 comments on commit 86227a2

Please sign in to comment.