From 9f4601c4d972090510aedf242b5d3d581cd90e5e Mon Sep 17 00:00:00 2001 From: Tomas Kracmar Date: Thu, 16 Apr 2026 11:55:23 +0200 Subject: [PATCH] ci: migrate workflows from GitHub Actions to Gitea Actions - Move CI workflow from .github/workflows/ to .gitea/workflows/ - Add Gitea Actions release workflow for tag builds - Remove GitHub-specific release workflow --- {.github => .gitea}/workflows/ci.yml | 0 .gitea/workflows/release.yml | 20 ++++++++++ .github/workflows/release.yml | 55 ---------------------------- 3 files changed, 20 insertions(+), 55 deletions(-) rename {.github => .gitea}/workflows/ci.yml (100%) create mode 100644 .gitea/workflows/release.yml delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/ci.yml b/.gitea/workflows/ci.yml similarity index 100% rename from .github/workflows/ci.yml rename to .gitea/workflows/ci.yml diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..2aa699e --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,20 @@ +name: Release + +on: + push: + tags: + - "v*" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Build Docker image + run: docker build ./backend --tag aoc-backend:${{ gitea.ref_name }} + + - name: Verify image exists + run: docker images | grep aoc-backend diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index a653af7..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: Release - -on: - push: - tags: - - "v*" - -env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }}-backend - -jobs: - build-and-push: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - attestations: write - id-token: write - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Log in to Container Registry - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - - name: Extract metadata - id: meta - uses: docker/metadata-action@v5 - with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - tags: | - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - - - name: Build and push Docker image - id: push - uses: docker/build-push-action@v6 - with: - context: ./backend - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - - - name: Generate artifact attestation - uses: actions/attest-build-provenance@v1 - with: - subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - subject-digest: ${{ steps.push.outputs.digest }} - push-to-registry: true