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