@@ -21,13 +21,44 @@ jobs:
2121 cd config/release
2222 kustomize edit set image fluxcd/source-controller=fluxcd/source-controller:${{ steps.get_version.outputs.VERSION }}
2323 kustomize build . > source-controller.yaml
24- - name : Push image
25- uses : docker/build-push -action@v1
24+ - name : Setup QEMU
25+ uses : docker/setup-qemu -action@master
2626 with :
27- username : ${{ secrets.DOCKER_FLUXCD_USER }}
27+ platforms : all
28+ - name : Setup Docker Buildx
29+ id : buildx
30+ uses : docker/setup-buildx-action@master
31+ - name : Login to GitHub Container Registry
32+ uses : docker/login-action@v1
33+ with :
34+ registry : ghcr.io
35+ username : fluxcdbot
36+ password : ${{ secrets.GHCR_TOKEN }}
37+ - name : Login to Docker Hub
38+ uses : docker/login-action@v1
39+ with :
40+ username : fluxcdbot
2841 password : ${{ secrets.DOCKER_FLUXCD_PASSWORD }}
29- repository : fluxcd/source-controller
30- tag_with_ref : true
42+ - name : Publish amd64 image
43+ uses : docker/build-push-action@v2-build-push
44+ with :
45+ push : ${{ github.event_name != 'pull_request' }}
46+ builder : ${{ steps.buildx.outputs.name }}
47+ context : .
48+ file : ./Dockerfile
49+ platforms : linux/amd64
50+ tags : |
51+ ghcr.io/fluxcd/source-controller:${{ steps.get_version.outputs.VERSION }}
52+ docker.io/fluxcd/source-controller:${{ steps.get_version.outputs.VERSION }}
53+ - name : Publish arm64 image
54+ uses : docker/build-push-action@v2-build-push
55+ with :
56+ push : ${{ github.event_name != 'pull_request' }}
57+ builder : ${{ steps.buildx.outputs.name }}
58+ context : .
59+ file : ./Dockerfile
60+ platforms : linux/arm64
61+ tags : ghcr.io/fluxcd/source-controller-arm64:${{ steps.get_version.outputs.VERSION }}
3162 - name : Create release
3263 id : create_release
3364 uses : actions/create-release@latest
0 commit comments