@@ -7,6 +7,9 @@ permissions:
7
7
on :
8
8
release :
9
9
types : [released]
10
+ push :
11
+ tags :
12
+ - " *"
10
13
11
14
jobs :
12
15
build-image :
@@ -36,12 +39,13 @@ jobs:
36
39
env :
37
40
DOCKER_BUILDKIT : 1
38
41
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"
40
43
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"
42
45
43
46
create-final-image :
44
47
runs-on : ubuntu-latest
48
+ needs : build-image
45
49
steps :
46
50
- name : Login to GitHub registry
47
51
uses : docker/login-action@v2
@@ -58,12 +62,12 @@ jobs:
58
62
- name : Create the manifest
59
63
run : |
60
64
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
67
71
- name : Push the manifest
68
72
run : docker manifest push docker.io/botsudo/docker-rustpython:latest
69
73
- name : Inspect the manifest
0 commit comments