fix forgejo actions: use gitea.com action URLs and fix sha syntax
Some checks failed
/ build (push) Failing after 2m43s

This commit is contained in:
vndangkhoa 2026-04-04 17:38:47 +07:00
parent 1dab610bb6
commit cedf20b81d

View file

@ -13,27 +13,19 @@ jobs:
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: https://gitea.com/actions/checkout@v4
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v3 uses: https://gitea.com/docker/setup-qemu-action@v3
with: with:
platforms: all platforms: all
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: https://gitea.com/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
- name: Login to Docker Registry - name: Login to Docker Registry
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
uses: docker/login-action@v3 uses: https://gitea.com/docker/login-action@v3
with: with:
registry: git.khoavo.myds.me registry: git.khoavo.myds.me
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
@ -41,11 +33,20 @@ jobs:
- name: Build and Push Docker image - name: Build and Push Docker image
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
uses: docker/build-push-action@v6 uses: https://gitea.com/docker/build-push-action@v6
with: with:
context: . context: .
push: true push: true
tags: | tags: |
git.khoavo.myds.me/vndangkhoa/kv-download:latest 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 platforms: linux/amd64,linux/arm64