From b28b1fcae20b26111b8662527da57c9bc622ff9c Mon Sep 17 00:00:00 2001 From: Julia McGhee Date: Sat, 21 Mar 2026 16:26:39 +0000 Subject: [PATCH] Use gitea.token instead of secrets.GITEA_TOKEN in workflows The built-in gitea.token is automatically available in Gitea Actions without needing a repo secret configured. --- .gitea/workflows/ci.yaml | 2 +- .gitea/workflows/deploy-preview.yaml | 2 +- .gitea/workflows/deploy-production.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 5ce7396..ec22040 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -83,5 +83,5 @@ jobs: - name: Push to registry if: gitea.event_name == 'push' || gitea.event_name == 'pull_request' run: | - echo "${{ secrets.GITEA_TOKEN }}" | docker login gitea.coreworlds.io -u ${{ gitea.actor }} --password-stdin + echo "${{ gitea.token }}" | docker login gitea.coreworlds.io -u ${{ gitea.actor }} --password-stdin docker push gitea.coreworlds.io/lazorgurl/homelab-${{ matrix.app }}:${{ gitea.sha }} diff --git a/.gitea/workflows/deploy-preview.yaml b/.gitea/workflows/deploy-preview.yaml index ca03086..c8cd69c 100644 --- a/.gitea/workflows/deploy-preview.yaml +++ b/.gitea/workflows/deploy-preview.yaml @@ -28,7 +28,7 @@ jobs: - name: Build and push images if: steps.changes.outputs.apps != '' run: | - echo "${{ secrets.GITEA_TOKEN }}" | docker login gitea.coreworlds.io -u ${{ gitea.actor }} --password-stdin + echo "${{ gitea.token }}" | docker login gitea.coreworlds.io -u ${{ gitea.actor }} --password-stdin IFS=',' read -ra APPS <<< "${{ steps.changes.outputs.apps }}" for app in "${APPS[@]}"; do docker build \ diff --git a/.gitea/workflows/deploy-production.yaml b/.gitea/workflows/deploy-production.yaml index 83eeba4..2fd6064 100644 --- a/.gitea/workflows/deploy-production.yaml +++ b/.gitea/workflows/deploy-production.yaml @@ -28,7 +28,7 @@ jobs: - name: Build and push images if: steps.changes.outputs.apps != '' run: | - echo "${{ secrets.GITEA_TOKEN }}" | docker login gitea.coreworlds.io -u ${{ gitea.actor }} --password-stdin + echo "${{ gitea.token }}" | docker login gitea.coreworlds.io -u ${{ gitea.actor }} --password-stdin IFS=',' read -ra APPS <<< "${{ steps.changes.outputs.apps }}" for app in "${APPS[@]}"; do docker build \