Skip to content

Commit

Permalink
fix: multiline problem with echo
Browse files Browse the repository at this point in the history
  • Loading branch information
trev-dev committed May 21, 2024
1 parent d92e54c commit dec2d6b
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 12 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/deploy-to-openshift-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,21 @@ jobs:
| oc apply -f -
# Process update-configmap
echo ${{ secrets.D365_API_KEY_SCHEME }} > /tmp/key_scheme
echo ${{ secrets.D365_API_AUTH_SETTINGS }} > /tmp/api_auth_settings
echo ${{ secrets.D365_RECIPIENTS }} > /tmp/recipients
echo ${{ secrets.D365_BC_REGISTRY_API }} > tmp/bc_registry_api
cat << JSON > /tmp/key_scheme
${{ secrets.D365_API_KEY_SCHEME }}
JSON
cat << JSON > /tmp/api_auth_settings
${{ secrets.D365_API_AUTH_SETTINGS }}
JSON
cat << JSON > /tmp/recipients
${{ secrets.D365_RECIPIENTS }}
JSON
cat << JSON > tmp/bc_registry_api
${{ secrets.D365_BC_REGISTRY_API }}
JSON
curl -s https://raw.githubusercontent.com/bcgov/${{ env.REPO_NAME }}/${{ env.BRANCH }}/tools/config/update-configmap.sh \
| bash /dev/stdin \
Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/deploy-to-openshift-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,21 @@ jobs:
| oc apply -f -
# Process update-configmap
echo ${{ secrets.D365_API_KEY_SCHEME }} > /tmp/key_scheme
echo ${{ secrets.D365_API_AUTH_SETTINGS }} > /tmp/api_auth_settings
echo ${{ secrets.D365_RECIPIENTS }} > /tmp/recipients
echo ${{ secrets.D365_BC_REGISTRY_API }} > tmp/bc_registry_api
cat << JSON > /tmp/key_scheme
${{ secrets.D365_API_KEY_SCHEME }}
JSON
cat << JSON > /tmp/api_auth_settings
${{ secrets.D365_API_AUTH_SETTINGS }}
JSON
cat << JSON > /tmp/recipients
${{ secrets.D365_RECIPIENTS }}
JSON
cat << JSON > tmp/bc_registry_api
${{ secrets.D365_BC_REGISTRY_API }}
JSON
curl -s https://raw.githubusercontent.com/bcgov/${{ env.REPO_NAME }}/${{ env.BRANCH }}/tools/config/update-configmap.sh \
| bash /dev/stdin \
Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/deploy-to-openshift-uat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,21 @@ jobs:
| oc apply -f -
# Process update-configmap
echo ${{ secrets.D365_API_KEY_SCHEME }} > /tmp/key_scheme
echo ${{ secrets.D365_API_AUTH_SETTINGS }} > /tmp/api_auth_settings
echo ${{ secrets.D365_RECIPIENTS }} > /tmp/recipients
echo ${{ secrets.D365_BC_REGISTRY_API }} > tmp/bc_registry_api
cat << JSON > /tmp/key_scheme
${{ secrets.D365_API_KEY_SCHEME }}
JSON
cat << JSON > /tmp/api_auth_settings
${{ secrets.D365_API_AUTH_SETTINGS }}
JSON
cat << JSON > /tmp/recipients
${{ secrets.D365_RECIPIENTS }}
JSON
cat << JSON > tmp/bc_registry_api
${{ secrets.D365_BC_REGISTRY_API }}
JSON
curl -s https://raw.githubusercontent.com/bcgov/${{ env.REPO_NAME }}/${{ env.BRANCH }}/tools/config/update-configmap.sh \
| bash /dev/stdin \
Expand Down

0 comments on commit dec2d6b

Please sign in to comment.