Check for secret key before nightly builds (#1375)
This commit is contained in:
parent
3197b22dbb
commit
ae1c2d89f0
8
.github/workflows/docker-nightly.yaml
vendored
8
.github/workflows/docker-nightly.yaml
vendored
@ -10,8 +10,14 @@ jobs:
|
||||
steps:
|
||||
|
||||
- name: Log into GitHub Container Registry
|
||||
env:
|
||||
GH_CR_PAT: ${{ secrets.GH_CR_PAT }}
|
||||
run: echo "${{ secrets.GH_CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
|
||||
if: env.GH_CR_PAT != null
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup and run
|
||||
run: cd build/release && ./docker-nightly.sh
|
||||
env:
|
||||
GH_CR_PAT: ${{ secrets.GH_CR_PAT }}
|
||||
run: cd build/release && ./docker-nightly.sh
|
||||
if: env.GH_CR_PAT != null
|
||||
|
Loading…
Reference in New Issue
Block a user