diff --git a/.gitea/workflows/pr.yml b/.gitea/workflows/pr.yml index c303b44..541745d 100644 --- a/.gitea/workflows/pr.yml +++ b/.gitea/workflows/pr.yml @@ -19,7 +19,7 @@ jobs: run: npm ci - name: Upload node_modules - uses: actions/upload-artifact@v7 + uses: https://gitea.com/actions/gitea-upload-artifact@main with: name: node-modules path: node_modules/ @@ -37,7 +37,7 @@ jobs: cache: "npm" - name: Restore node_modules - uses: actions/download-artifact@v8 + uses: https://github.com/ChristopherHX/gitea-download-artifact@main with: name: node-modules @@ -57,7 +57,7 @@ jobs: cache: "npm" - name: Restore node_modules - uses: actions/download-artifact@v8 + uses: https://github.com/ChristopherHX/gitea-download-artifact@main with: name: node-modules @@ -77,7 +77,7 @@ jobs: cache: "npm" - name: Restore node_modules - uses: actions/download-artifact@v8 + uses: https://github.com/ChristopherHX/gitea-download-artifact@main with: name: node-modules @@ -97,6 +97,13 @@ jobs: steps: - uses: actions/checkout@v6 + - name: Set Docker image tag + id: image + run: | + REGISTRY="${GITHUB_SERVER_URL#https://}" + REGISTRY="${REGISTRY#http://}" + echo "tag=${REGISTRY}/${{ github.repository }}:latest" >> $GITHUB_OUTPUT + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -105,4 +112,4 @@ jobs: with: context: . push: false - tags: ${{ github.server_url }}/${{ github.repository }}:latest + tags: ${{ steps.image.outputs.tag }}