@@ -5,35 +5,35 @@ permissions:
55
66on :
77 release :
8- types : [published]
8+ types : [published, edited ]
99
1010jobs :
11- push_to_registry :
12- name : Push Docker image to Docker hub
11+ build-image :
1312 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"]
1818 steps :
1919 - name : Check out the repository
2020 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 }}
2721 # https://github.com/docker/setup-qemu-action
2822 - name : Set up QEMU
2923 uses : docker/setup-qemu-action@v2
3024 # https://github.com/docker/setup-buildx-action
3125 - name : Set up Docker Buildx
3226 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 }}
3333 - name : Build and push image
3434 run : make docker-build
3535 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