fix: correct Gitea Actions syntax in CI workflow
Some checks failed
CI / test (push) Has been cancelled
CI / docker-push (push) Has been cancelled

This commit is contained in:
Lennie S.
2026-04-12 15:08:50 +00:00
parent 3c071c209d
commit d50c51d09c

View File

@@ -13,7 +13,7 @@ env:
jobs:
test:
runs-on: ubuntu-latest
runs-on: gitea
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -33,7 +33,7 @@ jobs:
run: uv run pytest
docker-push:
runs-on: ubuntu-latest
runs-on: gitea
needs: test
if: gitea.event_name == 'push'
steps:
@@ -50,11 +50,8 @@ jobs:
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.DOCKER_REGISTRY_USER }}
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
- name: Extract commit SHA
run: echo "SHA=${GITEA_SHA:0:7}" >> $GITHUB_ENV
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push multi-arch image
uses: docker/build-push-action@v6
@@ -63,7 +60,7 @@ jobs:
push: true
platforms: linux/amd64,linux/arm64
tags: |
${{ env.IMAGE_NAME }}:${{ env.SHA }}
${{ env.IMAGE_NAME }}:${{ gitea.sha }}
${{ env.IMAGE_NAME }}:latest
cache-from: type=registry,ref=${{ env.IMAGE_NAME }}:latest
cache-to: type=registry,ref=${{ env.IMAGE_NAME }}:latest,mode=max