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.
This commit is contained in:
@@ -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 }}
|
||||
|
||||
@@ -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 \
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user