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
17 changes: 13 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,21 @@ jobs:
- image: cimg/base:current

environment:
DOCKER_BUILDKIT: 1
CACHE_REF: enduire/happo-docs:buildcache

steps:
- checkout
- setup_remote_docker:
docker_layer_caching: true
docker_layer_caching: false

- run:
name: Build Docker image
command: |
docker build \
docker buildx create --use --name happo-builder --driver docker-container
docker buildx build \
--progress=plain \
--cache-from "type=registry,ref=${CACHE_REF}" \
Comment on lines 21 to +22
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair point — the framing in the PR description was wrong. --pull ensures the latest tag, not a reproducible build. Removed --pull from both jobs in ddcc420. If we want actual reproducibility in the future, the right move is pinning the base image to a digest in the Dockerfile.

--load \
--tag happo-test-docs \
-f Dockerfile .

Expand Down Expand Up @@ -115,10 +118,14 @@ jobs:
publish-docker:
docker:
- image: cimg/base:current

environment:
CACHE_REF: enduire/happo-docs:buildcache

steps:
- checkout
- setup_remote_docker:
docker_layer_caching: true
docker_layer_caching: false

- run:
name: Publish Docker image
Expand All @@ -128,6 +135,8 @@ jobs:
docker buildx create --use --name happo-builder --driver docker-container
docker buildx build \
--progress=plain \
--cache-from "type=registry,ref=${CACHE_REF}" \
--cache-to "type=registry,ref=${CACHE_REF},mode=max" \
-t enduire/happo-docs:$IMAGE_TAG \
--attest type=sbom \
--attest type=provenance,mode=max \
Expand Down
Loading