|
|
|
|
@ -39,20 +39,20 @@ jobs:
|
|
|
|
|
json: '{"type": "docker", "tag": "nightly", "commit": "${{ steps.vars.outputs.sha_short }}", "date": "${{ steps.date.outputs.date }}"}'
|
|
|
|
|
dir: 'backend/'
|
|
|
|
|
- name: setup platform emulator
|
|
|
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
|
uses: docker/setup-qemu-action@v4
|
|
|
|
|
- name: setup multi-arch docker build
|
|
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
|
|
|
|
|
|
- name: Login to DockerHub
|
|
|
|
|
if: github.event.inputs.push_image == 'true'
|
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
|
uses: docker/login-action@v4
|
|
|
|
|
with:
|
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
|
|
|
|
|
|
- name: Login to GitHub Container Registry
|
|
|
|
|
if: github.event.inputs.push_image == 'true'
|
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
|
uses: docker/login-action@v4
|
|
|
|
|
with:
|
|
|
|
|
registry: ghcr.io
|
|
|
|
|
username: ${{ github.repository_owner }}
|
|
|
|
|
|