8
8
release :
9
9
types : [released]
10
10
push :
11
- tags :
12
- - " *"
11
+ tags :
12
+ - " *"
13
13
14
14
jobs :
15
15
build-image :
@@ -18,13 +18,13 @@ jobs:
18
18
fail-fast : false
19
19
max-parallel : 4
20
20
matrix :
21
- with :
22
- - { platform: "linux/arm/v6", internal-tag: "armv6" }
23
- - { platform: "linux/arm/v7", internal-tag: "armv7" }
24
- - { platform: "linux/arm64/v8", internal-tag: "arm64v8" }
25
- - { platform: "linux/386", internal-tag: "386" }
26
- - { platform: "linux/ppc64le", internal-tag: "ppc64le" }
27
- - { platform: "linux/amd64", internal-tag: "amd64" }
21
+ include :
22
+ - { platform: "linux/arm/v6", internal-tag: "armv6" }
23
+ - { platform: "linux/arm/v7", internal-tag: "armv7" }
24
+ - { platform: "linux/arm64/v8", internal-tag: "arm64v8" }
25
+ - { platform: "linux/386", internal-tag: "386" }
26
+ - { platform: "linux/ppc64le", internal-tag: "ppc64le" }
27
+ - { platform: "linux/amd64", internal-tag: "amd64" }
28
28
steps :
29
29
- name : Check out the repository
30
30
uses : actions/checkout@v3
@@ -43,11 +43,11 @@ jobs:
43
43
- name : Build and push image
44
44
run : make docker-build
45
45
env :
46
- DOCKER_BUILDKIT : 1
47
- PLATFORM : ${{ matrix.platform }}
48
- IMAGE_TAG : " ghcr.io/sudo-bot/docker-rustpython/rustpython:${{ internal-tag }}-latest"
49
- ACTION : push
50
- 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"
46
+ DOCKER_BUILDKIT : 1
47
+ PLATFORM : ${{ matrix.platform }}
48
+ IMAGE_TAG : " ghcr.io/sudo-bot/docker-rustpython/rustpython:${{ internal-tag }}-latest"
49
+ ACTION : push
50
+ 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"
51
51
52
52
create-final-image :
53
53
runs-on : ubuntu-latest
@@ -67,13 +67,13 @@ jobs:
67
67
password : ${{ secrets.DOCKER_REPOSITORY_PASSWORD }}
68
68
- name : Create the manifest
69
69
run : |
70
- docker manifest create docker.io/botsudo/docker-rustpython:latest \
71
- ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/arm/v6-latest \
72
- ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/arm/v7-latest \
73
- ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/arm/v8-latest \
74
- ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/386-latest \
75
- ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/ppc64le-latest \
76
- ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/amd64-latest
70
+ docker manifest create docker.io/botsudo/docker-rustpython:latest \
71
+ ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/arm/v6-latest \
72
+ ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/arm/v7-latest \
73
+ ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/arm/v8-latest \
74
+ ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/386-latest \
75
+ ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/ppc64le-latest \
76
+ ghcr.io/sudo-bot/docker-rustpython/rustpython:linux/amd64-latest
77
77
- name : Push the manifest
78
78
run : docker manifest push docker.io/botsudo/docker-rustpython:latest
79
79
- name : Inspect the manifest
0 commit comments