Skip to content
Snippets Groups Projects
Unverified Commit 8e59b6d3 authored by Josh Soref's avatar Josh Soref Committed by GitHub
Browse files

Look for secrets before using them (#2918)

parent d7d82b63
No related branches found
No related tags found
No related merge requests found
...@@ -28,10 +28,26 @@ permissions: ...@@ -28,10 +28,26 @@ permissions:
contents: read contents: read
jobs: jobs:
container-image: config:
name: Container image
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps:
- name: Check Secrets
id: check-secrets
env:
username: ${{ secrets.DOCKER_USERNAME || '' }}
password: ${{ secrets.DOCKER_PASSWORD || '' }}
if: ${{ env.username != '' && env.password != '' }}
shell: bash
run:
echo has-secrets=1 >> "$GITHUB_OUTPUT"
outputs:
has-secrets: ${{ steps.check-secrets.outputs.has-secrets }}
container-images:
name: Container images
runs-on: ubuntu-latest
needs: config
if: ${{ needs.config.outputs.has-secrets }}
strategy: strategy:
matrix: matrix:
variant: variant:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment