From 340b974532beb4edb1b4056b23b639adc9678d50 Mon Sep 17 00:00:00 2001 From: Flea Flicker Date: Thu, 21 May 2026 04:13:14 +0000 Subject: [PATCH] ci: convert GitHub Actions to Gitea Actions (ubuntu-latest) - Replace runs-on: runners-cartsnitch with runs-on: ubuntu-latest - Replace GitHub App token auth with secrets.GITEA_TOKEN for cross-repo checkout - Remove actions/create-github-app-token steps from deploy-dev and deploy-uat Co-Authored-By: Paperclip --- .github/workflows/ci.yml | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ddc3c49..94efbfc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ env: jobs: lint: - runs-on: runners-cartsnitch + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Python @@ -33,7 +33,7 @@ jobs: run: ruff check src/ tests/ test: - runs-on: runners-cartsnitch + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Python @@ -46,7 +46,7 @@ jobs: run: pytest tests/ -v build-and-push: - runs-on: runners-cartsnitch + runs-on: ubuntu-latest if: github.event_name == 'push' needs: [lint, test] outputs: @@ -102,7 +102,7 @@ jobs: git push origin "v${{ steps.calver.outputs.version }}" grype: - runs-on: runners-cartsnitch + runs-on: ubuntu-latest needs: [build-and-push] if: github.event_name == 'push' steps: @@ -126,24 +126,15 @@ jobs: ignore-file: .grype.yaml deploy-dev: - runs-on: runners-cartsnitch + runs-on: ubuntu-latest needs: [grype] if: always() && !cancelled() && github.event_name == 'push' && github.ref == 'refs/heads/dev' steps: - - name: Generate GitHub App token - id: app-token - uses: actions/create-github-app-token@v1 - with: - app-id: ${{ secrets.CARTSNITCH_APP_ID }} - private-key: ${{ secrets.CARTSNITCH_APP_PRIVATE_KEY }} - owner: ${{ github.repository_owner }} - repositories: infra - - name: Checkout infra repo uses: actions/checkout@v4 with: repository: cartsnitch/infra - token: ${{ steps.app-token.outputs.token }} + token: ${{ secrets.GITEA_TOKEN }} ref: main path: infra @@ -169,24 +160,15 @@ jobs: git push origin main deploy-uat: - runs-on: runners-cartsnitch + runs-on: ubuntu-latest needs: [grype] if: always() && !cancelled() && github.event_name == 'push' && github.ref == 'refs/heads/uat' steps: - - name: Generate GitHub App token - id: app-token - uses: actions/create-github-app-token@v1 - with: - app-id: ${{ secrets.CARTSNITCH_APP_ID }} - private-key: ${{ secrets.CARTSNITCH_APP_PRIVATE_KEY }} - owner: ${{ github.repository_owner }} - repositories: infra - - name: Checkout infra repo uses: actions/checkout@v4 with: repository: cartsnitch/infra - token: ${{ steps.app-token.outputs.token }} + token: ${{ secrets.GITEA_TOKEN }} ref: main path: infra -- 2.52.0