Check for secret key before nightly builds (#1375)
This commit is contained in:
8
.github/workflows/docker-nightly.yaml
vendored
8
.github/workflows/docker-nightly.yaml
vendored
@@ -10,8 +10,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Log into GitHub Container Registry
|
- 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
|
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
|
- uses: actions/checkout@v2
|
||||||
- name: Setup and run
|
- 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
|
||||||
|
|||||||
Reference in New Issue
Block a user