@@ -5,35 +5,35 @@ permissions:
5
5
6
6
on :
7
7
release :
8
- types : [published]
8
+ types : [published, edited ]
9
9
10
10
jobs :
11
- push_to_registry :
12
- name : Push Docker image to Docker hub
11
+ build-image :
13
12
runs-on : ubuntu-latest
14
- timeout-minutes : 720
15
- environment :
16
- name : Build Docker images
17
-
13
+ strategy :
14
+ fail-fast : false
15
+ max-parallel : 4
16
+ matrix :
17
+ platform : ["linux/arm/v6", "linux/arm/v7", "linux/arm64/v8", "linux/386", "linux/ppc64le", "linux/amd64"]
18
18
steps :
19
19
- name : Check out the repository
20
20
uses : actions/checkout@v3
21
- - name : Login to DockerHub
22
- uses : docker/login-action@v2
23
- with :
24
- registry : docker.io
25
- username : ${{ secrets.DOCKER_REPOSITORY_LOGIN }}
26
- password : ${{ secrets.DOCKER_REPOSITORY_PASSWORD }}
27
21
# https://github.com/docker/setup-qemu-action
28
22
- name : Set up QEMU
29
23
uses : docker/setup-qemu-action@v2
30
24
# https://github.com/docker/setup-buildx-action
31
25
- name : Set up Docker Buildx
32
26
uses : docker/setup-buildx-action@v2
27
+ - name : Login to GitHub registry
28
+ uses : docker/login-action@v2
29
+ with :
30
+ registry : ghcr.io
31
+ username : ${{ github.repository_owner }}
32
+ password : ${{ secrets.GITHUB_TOKEN }}
33
33
- name : Build and push image
34
34
run : make docker-build
35
35
env :
36
- DOCKER_BUILDKIT : 1
37
- PLATFORM : " linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le "
38
- IMAGE_TAG : " docker .io/botsudo /docker-rustpython:latest"
39
- ACTION : push
36
+ DOCKER_BUILDKIT : 1
37
+ PLATFORM : ${{ matrix.platform }}
38
+ IMAGE_TAG : " ghcr .io/sudo-bot /docker-rustpython/rustpython-${{ matrix.platform }} :latest"
39
+ ACTION : push
0 commit comments