diff --git a/.forgejo/workflows/docker.yml b/.forgejo/workflows/docker.yml index 1eda9c5..7034dd3 100644 --- a/.forgejo/workflows/docker.yml +++ b/.forgejo/workflows/docker.yml @@ -13,27 +13,19 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: https://gitea.com/actions/checkout@v4 - name: Set up QEMU - uses: docker/setup-qemu-action@v3 + uses: https://gitea.com/docker/setup-qemu-action@v3 with: platforms: all - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Build Docker image - uses: docker/build-push-action@v6 - with: - context: . - push: false - tags: kv-download:latest - platforms: linux/amd64,linux/arm64 + uses: https://gitea.com/docker/setup-buildx-action@v3 - name: Login to Docker Registry if: github.event_name != 'pull_request' - uses: docker/login-action@v3 + uses: https://gitea.com/docker/login-action@v3 with: registry: git.khoavo.myds.me username: ${{ secrets.DOCKER_USERNAME }} @@ -41,11 +33,20 @@ jobs: - name: Build and Push Docker image if: github.event_name != 'pull_request' - uses: docker/build-push-action@v6 + uses: https://gitea.com/docker/build-push-action@v6 with: context: . push: true tags: | git.khoavo.myds.me/vndangkhoa/kv-download:latest - git.khoavo.myds.me/vndangkhoa/kv-download:{{ sha }} + git.khoavo.myds.me/vndangkhoa/kv-download:${{ github.sha }} + platforms: linux/amd64,linux/arm64 + + - name: Build Docker image (PR only) + if: github.event_name == 'pull_request' + uses: https://gitea.com/docker/build-push-action@v6 + with: + context: . + push: false + tags: kv-download:latest platforms: linux/amd64,linux/arm64