Skip to content

Commit

Permalink
ci: speed up ci image generation with a docker layer cache
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Dec 14, 2024
1 parent 0cad7a9 commit 802bb7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/generate-ci-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ jobs:
push: true
tags: ghcr.io/sparklemotion/nokogiri-test:${{matrix.tag}}
file: oci-images/nokogiri-test/${{matrix.tag}}.dockerfile
cache-from: type=registry,ref=ghcr.io/sparklemotion/nokogiri-test:${{ matrix.tag }}-cache
cache-to: type=registry,ref=ghcr.io/sparklemotion/nokogiri-test:${{ matrix.tag }}-cache,mode=max
2 changes: 2 additions & 0 deletions rakelib/docker.rake
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ module DockerHelper
push: true
tags: #{IMAGE_NAME}:${{matrix.tag}}
file: #{IMAGE_DIR}/${{matrix.tag}}.dockerfile
cache-from: type=registry,ref=ghcr.io/sparklemotion/nokogiri-test:${{ matrix.tag }}-cache
cache-to: type=registry,ref=ghcr.io/sparklemotion/nokogiri-test:${{ matrix.tag }}-cache,mode=max
YAML

puts "writing #{filename} ..."
Expand Down

0 comments on commit 802bb7a

Please sign in to comment.