File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 38
38
PLATFORM : ${{ matrix.platform }}
39
39
IMAGE_TAG : " ghcr.io/sudo-bot/docker-rustpython/rustpython-${{ matrix.platform }}:latest"
40
40
ACTION : push
41
+ EXTRA_ARGS : " --cache-from ghcr.io/sudo-bot/docker-rustpython/rustpython-${{ matrix.platform }}:latest"
42
+
43
+ create-final-image :
44
+ runs-on : ubuntu-latest
45
+ steps :
46
+ - name : Login to GitHub registry
47
+ uses : docker/login-action@v2
48
+ with :
49
+ registry : ghcr.io
50
+ username : ${{ github.repository_owner }}
51
+ password : ${{ secrets.GITHUB_TOKEN }}
52
+ - name : Login to DockerHub
53
+ uses : docker/login-action@v2
54
+ with :
55
+ registry : docker.io
56
+ username : ${{ secrets.DOCKER_REPOSITORY_LOGIN }}
57
+ password : ${{ secrets.DOCKER_REPOSITORY_PASSWORD }}
58
+ - name : Create the manifest
59
+ run : |
60
+ 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
67
+ - name : Push the manifest
68
+ run : docker manifest push docker.io/botsudo/docker-rustpython:latest
69
+ - name : Inspect the manifest
70
+ run : docker manifest inspect docker.io/botsudo/docker-rustpython:latest
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ PLATFORM ?= linux/amd64
7
7
8
8
ACTION ?= load
9
9
PROGRESS_MODE ?= plain
10
+ EXTRA_ARGS ?=
10
11
11
12
.PHONY : docker-build
12
13
@@ -19,4 +20,5 @@ docker-build:
19
20
--build-arg VCS_REF=` git rev-parse HEAD` \
20
21
--build-arg BUILD_DATE=` date -u +" %Y-%m-%dT%H:%M:%SZ" ` \
21
22
--$(ACTION ) \
23
+ $(EXTRA_ARGS ) \
22
24
./docker
You can’t perform that action at this time.
0 commit comments