mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 14:40:26 -05:00
Add vcpkg secrets check to CI workflow
Added a step in ResInsightWithCache.yml to verify that the required AZURE_VCPKG_STORAGE_ACCOUNT and AZURE_VCPKG_SAS_TOKEN secrets are set before running the configure step. This ensures the workflow fails early with a clear error if these secrets are missing, improving reliability and debuggability.
This commit is contained in:
1 parent
6d7151a5e2
commit
b383baa97f
1 file changed
+13
@@ -184,6 +184,19 @@ jobs:
|
||||
echo "Executable path: $EXEC_PATH"
|
||||
"$EXEC_PATH" --version
|
||||
|
||||
- name: Check vcpkg secrets
|
||||
shell: bash
|
||||
run: |
|
||||
if [ -z "${{ secrets.AZURE_VCPKG_STORAGE_ACCOUNT }}" ]; then
|
||||
echo "Error: AZURE_VCPKG_STORAGE_ACCOUNT secret is not set"
|
||||
exit 1
|
||||
fi
|
||||
if [ -z "${{ secrets.AZURE_VCPKG_SAS_TOKEN }}" ]; then
|
||||
echo "Error: AZURE_VCPKG_SAS_TOKEN secret is not set"
|
||||
exit 1
|
||||
fi
|
||||
echo "All required vcpkg secrets are present"
|
||||
|
||||
- name: Configure
|
||||
shell: bash
|
||||
env:
|
||||
|
||||
Reference in new issue
Block a user