diff --git a/.github/workflows/artifacts.yaml b/.github/workflows/artifacts.yaml index 1c047ea4a27b77fc5b6522711f3984b58e0f6b86..f90aa0ac781580bb9cb2250df1aae974a648bd1b 100644 --- a/.github/workflows/artifacts.yaml +++ b/.github/workflows/artifacts.yaml @@ -28,10 +28,26 @@ permissions: contents: read jobs: - container-image: - name: Container image + config: 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: matrix: variant: