File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,14 +27,21 @@ jobs:
2727 needs : lint
2828 steps :
2929 - uses : actions/checkout@v2
30- - name : Login to github docker
31- run : docker login ghcr.io -u ${{ github.actor }} -p ${{ secrets.PACKAGES_TOKEN }}
32- - name : Build docker image
33- run : docker build -t ${{ github.event.repository.name }} .
34- - name : Docker tag
35- run : docker tag ${{ github.event.repository.name }} ghcr.io/matchmakerbot/${{ github.event.repository.name }}:latest
36- - name : Push docker image
37- run : docker push ghcr.io/matchmakerbot/${{ github.event.repository.name }}:latest
30+ - name : Set up Docker Buildx
31+ uses : docker/setup-buildx-action@v3
32+ - name : Login to GitHub Container Registry
33+ uses : docker/login-action@v2
34+ with :
35+ registry : ghcr.io
36+ username : ${{ github.actor }}
37+ password : ${{ secrets.PACKAGES_TOKEN }}
38+ - name : Build and push multi-arch Docker image
39+ run : |
40+ docker buildx build \
41+ --platform linux/amd64,linux/arm64 \
42+ -t ghcr.io/matchmakerbot/${{ github.event.repository.name }}:latest \
43+ --push .
44+
3845 deploy :
3946 name : Deploy to kubernetes
4047 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments