@@ -34,38 +34,30 @@ jobs:
34
34
# https://github.com/docker/setup-buildx-action
35
35
- name : Set up Docker Buildx
36
36
uses : docker/setup-buildx-action@v2
37
- - name : Login to GitHub registry
37
+ - name : Login to DockerHub
38
38
uses : docker/login-action@v2
39
39
with :
40
- registry : ghcr .io
41
- username : ${{ github.repository_owner }}
42
- password : ${{ secrets.GITHUB_TOKEN }}
40
+ registry : docker .io
41
+ username : ${{ secrets.DOCKER_REPOSITORY_LOGIN }}
42
+ password : ${{ secrets.DOCKER_REPOSITORY_PASSWORD }}
43
43
- name : Build and push image
44
44
run : make docker-build
45
45
env :
46
- # See: https://stackoverflow.com/a/68459169/5155484
47
- # Cache the final image
48
- BUILDKIT_INLINE_CACHE : 1
49
46
DOCKER_BUILDKIT : 1
50
47
BUILDKIT_MULTI_PLATFORM : " false"
51
48
PLATFORM : ${{ matrix.platform }}
52
- IMAGE_TAG : " ghcr .io/sudo-bot /docker-rustpython/ rustpython:${{ matrix.internal-tag }}-latest"
49
+ IMAGE_TAG : " docker .io/botsudo /docker-rustpython:${{ matrix.internal-tag }}-latest"
53
50
ACTION : push
54
51
# Disable provenance to remove the attestation from the pushed image
55
52
# See: https://github.com/docker/buildx/issues/1509
56
- # It makes: ghcr.io/sudo-bot/docker-rustpython/rustpython:armv6-latest is a manifest list
57
- EXTRA_ARGS : " --provenance=false --cache-to=type=registry,ref=ghcr.io/sudo-bot/docker-rustpython/rustpython-buildcache:${{ matrix.internal-tag }},mode=max --cache-from=type=registry,ref=ghcr.io/sudo-bot/docker-rustpython/rustpython-buildcache:${{ matrix.internal-tag }}"
53
+ # It makes: docker.io/botsudo/docker-rustpython:<arch>-latest a manifest list
54
+ # And docker manifest create does not like that
55
+ EXTRA_ARGS : " --provenance=false"
58
56
59
57
create-final-image :
60
58
runs-on : ubuntu-latest
61
59
needs : build-image
62
60
steps :
63
- - name : Login to GitHub registry
64
- uses : docker/login-action@v2
65
- with :
66
- registry : ghcr.io
67
- username : ${{ github.repository_owner }}
68
- password : ${{ secrets.GITHUB_TOKEN }}
69
61
- name : Login to DockerHub
70
62
uses : docker/login-action@v2
71
63
with :
@@ -75,12 +67,12 @@ jobs:
75
67
- name : Create the manifest
76
68
run : |
77
69
docker manifest create docker.io/botsudo/docker-rustpython:latest \
78
- ghcr .io/sudo-bot /docker-rustpython/ rustpython:armv6-latest \
79
- ghcr .io/sudo-bot /docker-rustpython/ rustpython:armv7-latest \
80
- ghcr .io/sudo-bot /docker-rustpython/ rustpython:arm64v8-latest \
81
- ghcr .io/sudo-bot /docker-rustpython/ rustpython:386-latest \
82
- ghcr .io/sudo-bot /docker-rustpython/ rustpython:ppc64le-latest \
83
- ghcr .io/sudo-bot /docker-rustpython/ rustpython:amd64-latest
70
+ docker .io/botsudo /docker-rustpython:armv6-latest \
71
+ docker .io/botsudo /docker-rustpython:armv7-latest \
72
+ docker .io/botsudo /docker-rustpython:arm64v8-latest \
73
+ docker .io/botsudo /docker-rustpython:386-latest \
74
+ docker .io/botsudo /docker-rustpython:ppc64le-latest \
75
+ docker .io/botsudo /docker-rustpython:amd64-latest
84
76
- name : Push the manifest
85
77
run : docker manifest push docker.io/botsudo/docker-rustpython:latest
86
78
- name : Inspect the manifest
0 commit comments