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
|
- name: Push to registry
|
||||||
if: gitea.event_name == 'push' || gitea.event_name == 'pull_request'
|
if: gitea.event_name == 'push' || gitea.event_name == 'pull_request'
|
||||||
run: |
|
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 }}
|
docker push gitea.coreworlds.io/lazorgurl/homelab-${{ matrix.app }}:${{ gitea.sha }}
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
- name: Build and push images
|
- name: Build and push images
|
||||||
if: steps.changes.outputs.apps != ''
|
if: steps.changes.outputs.apps != ''
|
||||||
run: |
|
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 }}"
|
IFS=',' read -ra APPS <<< "${{ steps.changes.outputs.apps }}"
|
||||||
for app in "${APPS[@]}"; do
|
for app in "${APPS[@]}"; do
|
||||||
docker build \
|
docker build \
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ jobs:
|
|||||||
- name: Build and push images
|
- name: Build and push images
|
||||||
if: steps.changes.outputs.apps != ''
|
if: steps.changes.outputs.apps != ''
|
||||||
run: |
|
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 }}"
|
IFS=',' read -ra APPS <<< "${{ steps.changes.outputs.apps }}"
|
||||||
for app in "${APPS[@]}"; do
|
for app in "${APPS[@]}"; do
|
||||||
docker build \
|
docker build \
|
||||||
|
|||||||
Reference in New Issue
Block a user