Compare commits

...

6 Commits

Author SHA1 Message Date
Flea Flicker 8bf7c08950 chore: move workflows from .github to .gitea
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-21 12:33:43 +00:00
Barcode Betty f2a2673061 Merge pull request 'fix: use GITEA_TOKEN for GHCR login in Gitea Actions (CAR-892)' (#7) from betty/car-892-gitea-actions-ghcr-auth into dev 2026-05-21 11:33:27 +00:00
Barcode Betty dad3132fdb fix: use GITEA_TOKEN for GHCR login in Gitea Actions
Replace ${{ secrets.GITHUB_TOKEN }} with ${{ secrets.GITEA_TOKEN }}
for docker/login-action in Gitea Actions. GITHUB_TOKEN is not available
in Gitea Actions and was causing 'authentication required' failures for
ghcr.io push, leaving the auth service with a stale image on UAT.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-21 11:30:57 +00:00
Savannah Savings 934397a073 Merge pull request 'ci: promote Gitea Actions workflow changes to UAT' (#6) from dev into uat
ci: promote Gitea Actions workflow changes to UAT (#6)
2026-05-21 11:11:55 +00:00
Savannah Savings 80093752ae Merge pull request 'ci: convert GitHub Actions to Gitea Actions (ubuntu-latest)' (#5) from betty/car-869-gitea-actions-auth into dev
ci: convert GitHub Actions to Gitea Actions (ubuntu-latest) (#5)
2026-05-21 11:11:20 +00:00
Flea Flicker 791ac3156f ci: convert GitHub Actions to Gitea Actions (ubuntu-latest)
- Replace runs-on: runners-cartsnitch with runs-on: ubuntu-latest (3 jobs)
- Remove actions/create-github-app-token step from deploy-dev and deploy-uat
- Replace token in infra checkout with secrets.GITEA_TOKEN

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-21 04:01:09 +00:00
@@ -21,7 +21,7 @@ env:
jobs:
build-and-push:
runs-on: runners-cartsnitch
runs-on: ubuntu-latest
if: github.event_name == 'push'
outputs:
calver_tag: ${{ steps.calver.outputs.version }}
@@ -47,7 +47,7 @@ jobs:
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.GITEA_TOKEN }}
- name: Extract metadata
id: meta
@@ -76,23 +76,14 @@ jobs:
git push origin "v${{ steps.calver.outputs.version }}"
deploy-dev:
runs-on: runners-cartsnitch
runs-on: ubuntu-latest
needs: [build-and-push]
if: github.event_name == 'push' && (github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main')
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
- uses: actions/checkout@v4
with:
repository: cartsnitch/infra
token: ${{ steps.app-token.outputs.token }}
token: ${{ secrets.GITEA_TOKEN }}
ref: main
path: infra
@@ -124,23 +115,14 @@ jobs:
git push origin main
deploy-uat:
runs-on: runners-cartsnitch
runs-on: ubuntu-latest
needs: [build-and-push]
if: github.event_name == 'push' && (github.ref == 'refs/heads/uat' || github.ref == 'refs/heads/main')
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
- uses: actions/checkout@v4
with:
repository: cartsnitch/infra
token: ${{ steps.app-token.outputs.token }}
token: ${{ secrets.GITEA_TOKEN }}
ref: main
path: infra