Created
February 22, 2021 18:36
-
-
Save recursivecodes/bf8c7ee84f8884bcaf53e8ed5204f8a8 to your computer and use it in GitHub Desktop.
build.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: 'Check Provider' | |
run: | | |
echo "SOURCE_PROVIDER_ID=$(oci resource-manager configuration-source-provider list \ | |
--compartment-id ${{secrets.OCI_COMPARTMENT_OCID}} | jq '.data.items[] | select(."display-name"==env.PROVIDER_NAME).id' -r)" >> $GITHUB_ENV | |
- name: 'Check Stack' | |
run: | | |
echo "STACK_ID=$(oci resource-manager stack list --all --compartment-id ${{secrets.OCI_COMPARTMENT_OCID}} | jq '.data[] | select(."display-name"==env.STACK_NAME).id' -r)" >> $GITHUB_ENV |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment