modified: .github/workflows/build_docker.yml

This commit is contained in:
elseif 2026-07-16 09:42:18 +08:00
parent 723969a497
commit ad036099ce

View File

@ -158,12 +158,6 @@ jobs:
ENTRYPOINT ["/start.sh"]
EOF
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v4
with:
@ -171,6 +165,12 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Build and Push
uses: docker/build-push-action@v7
with:
@ -181,8 +181,10 @@ jobs:
build-args: VERSION=${{ env.VERSION }}
cache-from: type=gha
cache-to: type=gha,mode=max
provenance: false
sbom: false
- name: Update :latest tag for stable channel
if: env.IS_LATEST == 'true'
run: |
docker buildx imagetools create -t ${{ env.IMAGE }}:latest ${{ env.IMAGE }}:${{ env.VERSION }}
docker buildx imagetools create --provenance=false -t ${{ env.IMAGE }}:latest ${{ env.IMAGE }}:${{ env.VERSION }}