From 7fd790f6f01115382ba83c81acb39c2953074f9c Mon Sep 17 00:00:00 2001 From: Zoey Date: Thu, 12 Dec 2024 13:37:50 +0100 Subject: [PATCH] Update docker.yml Signed-off-by: Zoey --- .github/workflows/docker.yml | 7 +++++++ 1 file changed, 7 insertions(+) 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