diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index d0926eee1..8f1f685c7 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -53,6 +53,11 @@ jobs: registry: ghcr.io username: ${{ steps.un.outputs.un }} password: ${{ github.token }} + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + username: ${{ secrets.FORGEJO_USERNAME }} + password: ${{ secrets.FORGEJO_PASSWORD }} - name: version run: | version="$(cat .version)+$(git rev-parse --short HEAD)" @@ -71,11 +76,13 @@ jobs: tags: | ${{ steps.un.outputs.un }}/${{ steps.rn.outputs.rn }}:${{ github.ref_name }} ghcr.io/${{ steps.un.outputs.un }}/${{ steps.rn.outputs.rn }}:${{ github.ref_name }} + forgejo.zvcdn.de/${{ steps.un.outputs.un }}/${{ steps.rn.outputs.rn }}:${{ github.ref_name }} - name: show version if: ${{ github.event_name != 'pull_request' }} run: | docker run --rm --entrypoint nginx ${{ steps.un.outputs.un }}/${{ steps.rn.outputs.rn }}:${{ github.ref_name }} -V docker run --rm --entrypoint nginx ghcr.io/${{ steps.un.outputs.un }}/${{ steps.rn.outputs.rn }}:${{ github.ref_name }} -V + docker run --rm --entrypoint nginx forgejo.zvcdn.de/${{ steps.un.outputs.un }}/${{ steps.rn.outputs.rn }}:${{ github.ref_name }} -V - name: Set PR-Number (PR) if: ${{ github.event_name == 'pull_request' }} id: pr