8000 Try cache-from cache-to · sudo-bot/docker-rustpython@8c35a9b · GitHub
[go: up one dir, main page]

Skip to content

Commit 8c35a9b

Browse files
committed
Try cache-from cache-to
1 parent 41d871f commit 8c35a9b

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ permissions:
77
on:
88
release:
99
types: [released]
10+
push:
11+
tags:
12+
- "*"
1013

1114
jobs:
1215
build-image:
@@ -36,12 +39,13 @@ jobs:
3639
env:
3740
DOCKER_BUILDKIT: 1
3841
PLATFORM: ${{ matrix.platform }}
39-
IMAGE_TAG: "ghcr.io/sudo-bot/docker-rustpython/rustpython-${{ matrix.platform }}:latest"
42+
IMAGE_TAG: "ghcr.io/sudo-bot/docker-rustpython/rustpython:${{ matrix.platform }}-latest"
4043
ACTION: push
41-
EXTRA_ARGS: "--cache-from ghcr.io/sudo-bot/docker-rustpython/rustpython-${{ matrix.platform }}:latest"
44+
EXTRA_ARGS: "--cache-to=type=registry,ref=ghcr.io/sudo-bot/docker-rustpython/rustpython-buildcache,mode=max --cache-from=type=registry,ref=ghcr.io/sudo-bot/docker-rustpython/rustpython-${{ matrix.platform }}:latest"
4245

4346
create-final-image:
4447
runs-on: ubuntu-latest
48+
needs: build-image
4549
steps:
4650
- name: Login to GitHub registry
4751
uses: docker/login-action@v2
@@ -58,12 +62,12 @@ jobs:
5862
- name: Create the manifest
5963
run: |
6064
docker manifest create docker.io/botsudo/docker-rustpython:latest \
61-
ghcr.io/sudo-bot/docker-rustpython/rustpython-linux/arm/v6:latest \
62-
ghcr.io/sudo-bot/docker-rustpython/rustpython-linux/arm/v7:latest \
63-
ghcr.io/sudo-bot/docker-rustpython/rustpython-linux/arm/v8:latest \
64-
ghcr.io/sudo-bot/docker-rustpython/rustpython-linux/386:latest \
65-
ghcr.io/sudo-bot/docker-rustpython/rustpython-linux/ppc64le:latest \
66-
ghcr.io/sudo-bot/docker-rustpython/rustpython-linux/amd64:latest
65+
ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/arm/v6-latest \
66+
ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/arm/v7-latest \
67+
ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/arm/v8-latest \
68+
ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/386-latest \
69+
ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/ppc64le-latest \
70+
ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/amd64-latest
6771
- name: Push the manifest
6872
run: docker manifest push docker.io/botsudo/docker-rustpython:latest
6973
- name: Inspect the manifest

0 commit comments

Comments
 (0)
0