Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,20 @@ jobs:
# The recipes (RFC-0047 §10) on the same image: deploy/swarm/stack.yml on this runner's engine
# in swarm mode, and deploy/helm/cloudhal on a kind cluster (kind, helm and kubectl come with
# the runner image).
# A pushed build is a multi-platform index (amd64, arm64, attestations); pulled, only the
# runner's platform has content, and `kind load docker-image` (`ctr import --all-platforms`)
# fails on the missing blobs (#311). So the recipes get a single-platform linux/amd64 image,
# loaded the way a pull request's build is: `FROM` the pushed digest and nothing else (the same
# layers and config), with no attestations.
- name: Local copy of the image for the recipes
run: |
if [ "$PUSH" = "true" ]; then docker pull "$SMOKE_IMAGE"; fi
docker tag "$SMOKE_IMAGE" cloudhal:ci
if [ "$PUSH" = "true" ]; then
printf 'FROM %s\n' "$SMOKE_IMAGE" | docker buildx build --platform linux/amd64 \
--provenance=false --sbom=false --load -t cloudhal:ci -
else
docker tag "$SMOKE_IMAGE" cloudhal:ci
fi
docker image inspect cloudhal:ci --format '{{.Os}}/{{.Architecture}} {{.Id}}'
env:
SMOKE_IMAGE: ${{ steps.ref.outputs.image }}
# Every step after the build is bounded (#306): a hang fails with the script's diagnostics
Expand Down
Loading