Skip to content

Commit 16af7ca

Browse files
committed
cache tweaks
1 parent 9737ece commit 16af7ca

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

.github/workflows/main.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,9 @@ jobs:
1919
run: |
2020
curl -SL --output buildx.exe https://github.com/docker/buildx/releases/download/v0.22.0-rc1/buildx-v0.22.0-rc1.windows-amd64.exe
2121
22-
- name: GHA Cache Check
23-
shell: pwsh
24-
run: |
25-
$env:DOCKER_BUILDKIT=1
26-
$env:BUILDX_EXPERIMENTAL=1
27-
.\buildx.exe build -f docker/xcache.dockerfile --cache-to type=gha --cache-from type=gha -t app:latest .
28-
if ($LASTEXITCODE -ne 0) { exit 0 }
29-
3022
- name: Build Image
3123
shell: pwsh
3224
run: |
33-
$env:DOCKER_BUILDKIT=0
34-
$env:BUILDX_EXPERIMENTAL=0
3525
docker build -f docker/mount.dockerfile -t app:latest .
3626
3727
- name: Cache Image with GHA

docker/xcache.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# escape=`
2-
FROM docker.io/library/app:latest
2+
FROM app:latest

0 commit comments

Comments
 (0)