Skip to content

Commit

Permalink
Store env metadata
Browse files Browse the repository at this point in the history
This should simplify troublshooting
  • Loading branch information
a-b committed Oct 9, 2024
1 parent b58c39a commit 1797d47
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/tests-integration-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,25 @@ jobs:
shepherd login service-account ${account_token}
shepherd get lease ${{ inputs.lease-id }} --namespace tas-devex --json | jq .output > metadata.json
- name: Store env metadata
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: env-metadata
path: metadata.json

- name: Setup environment
id: setup_env
run: |
set -eu
echo "ENV=$(jq -r .name metadata.json)" >> $GITHUB_OUTPUT
echo "ENV=$(jq -r .name metadata.json)" >> $GITHUB_OUTPUT
echo "API=$(jq -r .cf.api_url metadata.json)" >> $GITHUB_OUTPUT
echo "DOMAIN=$(echo $API | sed 's/^api\.//')" >> $GITHUB_OUTPUT
jq -r .bosh.jumpbox_private_key metadata.json > /tmp/${ENV}.priv
bosh_env_variables=$(bbl print-env --metadata-file ./metadata.json)
bosh_env_variables=$(bbl print-env --metadata-file metadata.json)
echo "$bosh_env_variables" >> $GITHUB_OUTPUT
eval "$bosh_env_variables"
Expand Down

0 comments on commit 1797d47

Please sign in to comment.