Compare commits

...

13 Commits

Author SHA1 Message Date
Checkout Charlie 5d2701ef52 chore: re-trigger CI for UAT registry verification (CAR-983) 2026-05-23 18:37:10 +00:00
Savannah Savings c06f7cf5a1 Merge pull request 'ci: promote dev to uat — Gitea container registry CI changes' (#13) from dev into uat
ci: promote dev to uat — Gitea container registry CI changes (#13)
2026-05-23 15:26:07 +00:00
Savannah Savings c1c89e4206 Merge pull request 'ci: switch Docker image push from GHCR to Gitea container registry' (#12) from barcode-betty/car-959-gitea-registry into dev
ci: switch Docker image push from GHCR to Gitea container registry (#12)
2026-05-23 15:25:44 +00:00
Flea Flicker 6d6c872962 ci: switch Docker image push from GHCR to Gitea container registry
- REGISTRY: ghcr.io -> git.farh.net
- Renamed login step to Gitea Container Registry
- kustomize rename form: ghcr.io/cartsnitch/auth=git.farh.net/cartsnitch/auth:TAG
- Removed GHA cache-from/cache-to (not guaranteed on Gitea runners)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-05-23 15:15:07 +00:00
Savannah Savings 34c5a85d49 Merge pull request 'chore: promote dev to uat (move workflows to .gitea)' (#10) from dev into uat
chore: promote dev to uat — move workflows to .gitea (#10)
2026-05-21 13:46:13 +00:00
Savannah Savings ebfefd6970 Merge pull request 'chore: move workflows from .github to .gitea' (#9) from barcode-betty/move-workflows-to-gitea into dev
chore: move workflows from .github to .gitea (#9)

Merge PR: barcode-betty/move-workflows-to-gitea -> dev
Reviewed-by: Savannah Savings (CTO)
QA-by: Checkout Charlie
2026-05-21 13:45:52 +00:00
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
Savannah Savings 6b8939fd7f Merge pull request 'chore: promote Gitea Actions fix to uat (CAR-892)' (#8) from dev into uat
chore: promote Gitea Actions fix to uat (CAR-892)

Dev→UAT promotion. GHCR login fix.

cc @cpfarhood
2026-05-21 11:55:50 +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
@@ -16,12 +16,12 @@ permissions:
security-events: write security-events: write
env: env:
REGISTRY: ghcr.io REGISTRY: git.farh.net
IMAGE_NAME: cartsnitch/auth IMAGE_NAME: cartsnitch/auth
jobs: jobs:
build-and-push: build-and-push:
runs-on: runners-cartsnitch runs-on: ubuntu-latest
if: github.event_name == 'push' if: github.event_name == 'push'
outputs: outputs:
calver_tag: ${{ steps.calver.outputs.version }} calver_tag: ${{ steps.calver.outputs.version }}
@@ -42,12 +42,12 @@ jobs:
else BUILD_NUM=$(echo "$EXISTING" | sed "s/v${DATE_TAG}\.//"); VERSION="${DATE_TAG}.$((BUILD_NUM + 1))"; fi else BUILD_NUM=$(echo "$EXISTING" | sed "s/v${DATE_TAG}\.//"); VERSION="${DATE_TAG}.$((BUILD_NUM + 1))"; fi
echo "version=$VERSION" >> "$GITHUB_OUTPUT" echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Log in to GHCR - name: Log in to Gitea Container Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ${{ env.REGISTRY }} registry: ${{ env.REGISTRY }}
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITEA_TOKEN }}
- name: Extract metadata - name: Extract metadata
id: meta id: meta
@@ -66,8 +66,6 @@ jobs:
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Create git tag - name: Create git tag
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'
@@ -76,23 +74,14 @@ jobs:
git push origin "v${{ steps.calver.outputs.version }}" git push origin "v${{ steps.calver.outputs.version }}"
deploy-dev: deploy-dev:
runs-on: runners-cartsnitch runs-on: ubuntu-latest
needs: [build-and-push] needs: [build-and-push]
if: github.event_name == 'push' && (github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main') if: github.event_name == 'push' && (github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main')
steps: 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 - uses: actions/checkout@v4
with: with:
repository: cartsnitch/infra repository: cartsnitch/infra
token: ${{ steps.app-token.outputs.token }} token: ${{ secrets.GITEA_TOKEN }}
ref: main ref: main
path: infra path: infra
@@ -110,7 +99,7 @@ jobs:
- name: Update auth image tag in dev overlay - name: Update auth image tag in dev overlay
run: | run: |
cd infra/apps/overlays/dev cd infra/apps/overlays/dev
kustomize edit set image ghcr.io/cartsnitch/auth:${{ steps.tag.outputs.tag }} kustomize edit set image ghcr.io/cartsnitch/auth=git.farh.net/cartsnitch/auth:${{ steps.tag.outputs.tag }}
- name: Commit and push to infra - name: Commit and push to infra
run: | run: |
@@ -124,23 +113,14 @@ jobs:
git push origin main git push origin main
deploy-uat: deploy-uat:
runs-on: runners-cartsnitch runs-on: ubuntu-latest
needs: [build-and-push] needs: [build-and-push]
if: github.event_name == 'push' && (github.ref == 'refs/heads/uat' || github.ref == 'refs/heads/main') if: github.event_name == 'push' && (github.ref == 'refs/heads/uat' || github.ref == 'refs/heads/main')
steps: 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 - uses: actions/checkout@v4
with: with:
repository: cartsnitch/infra repository: cartsnitch/infra
token: ${{ steps.app-token.outputs.token }} token: ${{ secrets.GITEA_TOKEN }}
ref: main ref: main
path: infra path: infra
@@ -158,7 +138,7 @@ jobs:
- name: Update auth image tag in uat overlay - name: Update auth image tag in uat overlay
run: | run: |
cd infra/apps/overlays/uat cd infra/apps/overlays/uat
kustomize edit set image ghcr.io/cartsnitch/auth:${{ steps.tag.outputs.tag }} kustomize edit set image ghcr.io/cartsnitch/auth=git.farh.net/cartsnitch/auth:${{ steps.tag.outputs.tag }}
- name: Commit and push to infra - name: Commit and push to infra
run: | run: |