fix: drop buildx, use native docker build+push for Gitea runner compat
Build and Deploy / build-and-test (push) Successful in 17s
Build and Deploy / build-image (push) Failing after 15s
Build and Deploy / deploy (push) Has been skipped

This commit is contained in:
2026-05-31 13:45:11 +00:00
parent d5f59da076
commit f649fff223
+7 -21
View File
@@ -47,9 +47,6 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to registry - name: Log in to registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
@@ -57,24 +54,13 @@ jobs:
username: ${{ gitea.actor }} username: ${{ gitea.actor }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN }}
- name: Docker meta - name: Build and push Docker image
id: meta run: |
uses: docker/metadata-action@v5 IMAGE_TAG=sha-$(git rev-parse --short HEAD)
with: docker build -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:$IMAGE_TAG .
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:$IMAGE_TAG
tags: | docker tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:$IMAGE_TAG ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
type=sha,prefix=,suffix=,format=short docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
type=raw,value=latest
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest