We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7f1b92c + d42d409 commit 04b91a8Copy full SHA for 04b91a8
.github/workflows/reusable-build-operator.yaml
@@ -46,9 +46,23 @@ env:
46
47
jobs:
48
49
+ check-secrets:
50
+ runs-on: ubuntu-latest
51
+ steps:
52
+ - name: Check secrets are set
53
+ id: check
54
+ if: "${{ env.imagenamespace == '' }}"
55
+ run: |
56
+ 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"
57
+ echo "missing=true">>$GITHUB_OUTPUT
58
+ outputs:
59
+ missing-secrets: ${{ steps.check.outputs.missing }}
60
+
61
build-operator:
62
+ needs: check-secrets
63
name: Build ${{ inputs.operator_name }}-operator image using buildah
64
runs-on: ubuntu-latest
65
+ if: needs.check-secrets.outputs.missing-secrets != 'true'
66
67
steps:
68
- uses: actions/checkout@v4
0 commit comments