CI: build amd64-only via buildx with provenance/sbom off
Forgejo runner with default Docker emits OCI image-index manifests for multi-arch + attestation builds. argocd-image-updater cannot follow the index → manifest chain to read the Created timestamp, so it never sees new tags. Pinning to a single linux/amd64 build with no provenance/sbom produces a plain Docker v2 manifest that image-updater can read.
This commit is contained in:
parent
09cf9c7d37
commit
40ad28e97b
1 changed files with 13 additions and 6 deletions
|
|
@ -37,10 +37,17 @@ jobs:
|
||||||
- name: Log in to container registry
|
- name: Log in to container registry
|
||||||
run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login ${{ secrets.REGISTRY_URL }} -u ${{ secrets.REGISTRY_USER }} --password-stdin
|
run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login ${{ secrets.REGISTRY_URL }} -u ${{ secrets.REGISTRY_USER }} --password-stdin
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: https://github.com/docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
run: |
|
uses: https://github.com/docker/build-push-action@v5
|
||||||
IMAGE="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
|
with:
|
||||||
TAG="${{ steps.tag.outputs.tag }}"
|
context: .
|
||||||
docker build -t "${IMAGE}:${TAG}" -t "${IMAGE}:main" .
|
push: true
|
||||||
docker push "${IMAGE}:${TAG}"
|
platforms: linux/amd64
|
||||||
docker push "${IMAGE}:main"
|
provenance: false
|
||||||
|
sbom: false
|
||||||
|
tags: |
|
||||||
|
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.tag.outputs.tag }}
|
||||||
|
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:main
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue