There was an error while loading. Please reload this page.
2 parents cdc4972 + 5534dda commit 8ebf554Copy full SHA for 8ebf554
1 file changed
.github/workflows/build-sg-core.yaml
@@ -18,10 +18,23 @@ env:
18
latesttag: latest
19
20
jobs:
21
+ check-secrets:
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ - name: Check secrets are set
25
+ id: check
26
+ if: "${{ env.imagenamespace == '' }}"
27
+ run: |
28
+ echo "::error title=Missing required secrets::See https://github.com/openstack-k8s-operators/dev-docs/blob/main/image_build.md#creating-images-using-github-actions"
29
+ echo "missing=true">>$GITHUB_OUTPUT
30
+ outputs:
31
+ missing-secrets: ${{ steps.check.outputs.missing }}
32
33
build:
34
+ needs: check-secrets
35
name: Build sg-core image using buildah
36
runs-on: ubuntu-latest
37
+ if: needs.check-secrets.outputs.missing-secrets != 'true'
38
39
steps:
40
- uses: actions/checkout@v4
0 commit comments