|
@@ -29,16 +29,17 @@ jobs:
|
|
|
uses: docker/setup-qemu-action@v2
|
|
|
- name: Set up Docker Buildx
|
|
|
uses: docker/setup-buildx-action@v2
|
|
|
- - name: Login to DockerHub
|
|
|
+ - name: Login to GitHub Registry
|
|
|
uses: docker/login-action@v2
|
|
|
with:
|
|
|
- username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
- password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
+ registry: ghcr.io
|
|
|
+ username: ${{ github.actor }}
|
|
|
+ password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
- name: Build and push
|
|
|
- uses: docker/build-push-action@v3
|
|
|
+ uses: docker/build-push-action@v4
|
|
|
with:
|
|
|
context: "{{defaultContext}}:${{ matrix.dist }}"
|
|
|
# we need to build for arm64 first
|
|
|
# platforms: linux/amd64,linux/arm64
|
|
|
push: true
|
|
|
- tags: kamailio/kamailio:${{ github.ref_name }}-${{ matrix.dist }}
|
|
|
+ tags: ghcr.io/kamailio/kamailio:${{ github.ref_name }}-${{ matrix.dist }}
|