Fallback to default GITHUB_TOKEN, if REGISTRY_TOKEN does not exist
This commit is contained in:
7
.github/workflows/bot.yml
vendored
7
.github/workflows/bot.yml
vendored
@@ -8,6 +8,9 @@ on:
|
||||
- master
|
||||
paths:
|
||||
- bot/**
|
||||
permissions:
|
||||
packages: write
|
||||
|
||||
jobs:
|
||||
pushArm:
|
||||
name: "yolks:bot_${{ matrix.tag }}"
|
||||
@@ -40,7 +43,7 @@ jobs:
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
- uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: ./bot/${{ matrix.tag }}
|
||||
@@ -75,7 +78,7 @@ jobs:
|
||||
# with:
|
||||
# registry: ghcr.io
|
||||
# username: ${{ github.repository_owner }}
|
||||
# password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
# password: ${{ secrets.REGISTRY_TOKEN || secrets.GITHUB_TOKEN }}
|
||||
# - uses: docker/build-push-action@v6
|
||||
# with:
|
||||
# context: ./bot/${{ matrix.tag }}
|
||||
|
Reference in New Issue
Block a user