|
|
@@ -121,20 +121,11 @@ jobs:
|
|
|
- uses: actions/checkout@v6
|
|
|
- name: Set up Docker Buildx
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
- - name: Extract Docker metadata
|
|
|
- id: meta
|
|
|
- uses: docker/metadata-action@v5
|
|
|
- with:
|
|
|
- images: ghcr.io/${{ env.IMAGE_NAME }},docker.io/${{ env.IMAGE_NAME }}
|
|
|
- tags: type=sha,prefix=
|
|
|
- flavor: latest=true
|
|
|
- name: Build
|
|
|
uses: docker/build-push-action@v6
|
|
|
with:
|
|
|
context: .
|
|
|
platforms: linux/amd64, linux/arm64, linux/arm
|
|
|
- tags: ${{ steps.meta.outputs.tags }}
|
|
|
- labels: ${{ steps.meta.outputs.labels }}
|
|
|
cache-from: type=gha
|
|
|
cache-to: type=gha,mode=max
|
|
|
build-args: |
|
|
|
@@ -173,12 +164,10 @@ jobs:
|
|
|
with:
|
|
|
images: ghcr.io/${{ env.IMAGE_NAME }},docker.io/${{ env.IMAGE_NAME }}
|
|
|
tags: |
|
|
|
- type=sha
|
|
|
+ type=sha,prefix=
|
|
|
type=ref,event=tag
|
|
|
type=raw,value=latest,enable={{is_default_branch}}
|
|
|
- flavor: |
|
|
|
- latest=false
|
|
|
- prefix=
|
|
|
+ flavor: latest=false
|
|
|
- name: Build and push
|
|
|
id: push
|
|
|
uses: docker/build-push-action@v6
|