Skip to content

Commit

Permalink
feat(ci): enhance Docker build workflow with multi-platform support a…
Browse files Browse the repository at this point in the history
…nd dynamic tagging
  • Loading branch information
c0deplayer committed Oct 29, 2024
1 parent 9e7d83c commit 17e73f3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,18 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ${{ matrix.image }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=schedule,pattern={{date 'YYYYMMDD'}}
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
file: ${{ matrix.dockerfile }}
push: true
tags: ${{ steps.meta.outputs.tags }}
Expand Down

0 comments on commit 17e73f3

Please sign in to comment.