Use gitea.token instead of secrets.GITEA_TOKEN in workflows
Some checks failed
CI / build (push) Blocked by required conditions
Deploy Production / deploy (push) Waiting to run
CI / changes (push) Successful in 2s
CI / lint-and-test (push) Has been cancelled

The built-in gitea.token is automatically available in Gitea
Actions without needing a repo secret configured.
This commit is contained in:
Julia McGhee
2026-03-21 16:26:39 +00:00
parent 9c02fd7f4c
commit b28b1fcae2
3 changed files with 3 additions and 3 deletions

View File

@@ -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 }}

View File

@@ -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 \

View File

@@ -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 \