Skip to content

Commit

Permalink
Push image & buildcache separately, then import image later
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Feb 1, 2025
1 parent 10d36de commit e254e18
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,9 @@ jobs:
docker buildx bake
--allow=fs.read=/home/runner/work/mampf/mampf
-f ./docker-compose.yml -f ./docker-compose.cicd.build.yml
--set mampf.output=type=registry
--set mampf.tags=ghcr.io/mampf-hd/mampftest:cache
--set mampf.cache-from=type=registry,ref=ghcr.io/mampf-hd/mampftest:cache
--set mampf.cache-to=type=registry,ref=ghcr.io/mampf-hd/mampftest:cache,mode=max,image-manifest=true
--set mampf.output=type=image,name=ghcr.io/mampf-hd/mampftest:image,push=true
--set mampf.cache-from=type=registry,ref=ghcr.io/mampf-hd/mampftest:buildcache
--set mampf.cache-to=type=registry,ref=ghcr.io/mampf-hd/mampftest:buildcache,mode=max
unit-tests:
name: Unit tests
Expand All @@ -89,7 +88,7 @@ jobs:
- name: Pull MaMpf image (from GHCR)
working-directory: docker/test
run: >
docker pull ghcr.io/mampf-hd/mampftest:cache
docker pull ghcr.io/mampf-hd/mampftest:image
- name: Run unit tests
working-directory: docker/test
Expand Down Expand Up @@ -128,7 +127,7 @@ jobs:
- name: Pull MaMpf image (from GHCR)
working-directory: docker/test
run: >
docker pull ghcr.io/mampf-hd/mampftest:cache
docker pull ghcr.io/mampf-hd/mampftest:image
- name: Run Cypress tests
working-directory: docker/test
Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
"cSpell.words": [
"activerecord",
"ajax",
"buildcache",
"cicd",
"commontator",
"cospeaker",
Expand Down
2 changes: 1 addition & 1 deletion docker/test/docker-compose.cicd.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ services:
dockerfile: docker/development/Dockerfile
args:
IN_CI_CD: "true"
image: mampftest:cache
image: mampftest:image
2 changes: 1 addition & 1 deletion docker/test/docker-compose.cicd.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
mampf:
image: ghcr.io/mampf-hd/mampftest:cache
image: ghcr.io/mampf-hd/mampftest:image
environment:
RAILS_ENV: test
IN_CI_CD_WEBPACKER: "true"

0 comments on commit e254e18

Please sign in to comment.