Skip to content

Commit

Permalink
Add caching and improved tagging to container publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhsm committed Apr 12, 2023
1 parent 5d47825 commit 85be394
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/publish-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
uses: docker/metadata-action@v4
with:
images: zetifi/docker-irestarter
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -34,5 +39,8 @@ jobs:
uses: docker/build-push-action@v3
with:
push: true
tags: zetifi/docker-irestarter:latest
platforms: linux/arm64/v8,linux/amd64
tags: ${{ steps.meta.outputs.tags }}, zetifi/docker-irestarter:latest
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/arm64/v8,linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 85be394

Please sign in to comment.