Fallback to default GITHUB_TOKEN, if REGISTRY_TOKEN does not exist
This commit is contained in:
5
.github/workflows/mariadb.yml
vendored
5
.github/workflows/mariadb.yml
vendored
@@ -9,6 +9,9 @@ on:
|
||||
- master
|
||||
paths:
|
||||
- mariadb/**
|
||||
permissions:
|
||||
packages: write
|
||||
|
||||
jobs:
|
||||
push:
|
||||
name: "yolks:mariadb_${{ matrix.tag }}"
|
||||
@@ -37,7 +40,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: ./mariadb
|
||||
|
Reference in New Issue
Block a user