Skip to content

Commit

Permalink
try hide by a script file
Browse files Browse the repository at this point in the history
  • Loading branch information
haitch committed Apr 18, 2024
1 parent a52b144 commit fc24be1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
11 changes: 11 additions & 0 deletions .github/scripts/bicep2env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
echo "PROW_HOST=${{ steps.bicep.outputs.prowHostName }}" >> "$GITHUB_ENV"
AZURE_STORAGE_ACCOUNT_USER=${{ steps.bicep.outputs.storageAccountName }}
echo "::add-mask::$AZURE_STORAGE_ACCOUNT_USER"
echo "AZURE_STORAGE_ACCOUNT_USER=$AZURE_STORAGE_ACCOUNT_USER" >> "$GITHUB_ENV"
PUBLIC_IP_NAME=${{ steps.bicep.outputs.publicIpName }}
echo "::add-mask::$PUBLIC_IP_NAME"
echo "PUBLIC_IP_NAME=$PUBLIC_IP_NAME" >> "$GITHUB_ENV"
PUBLIC_IP_ADDRESS=${{ steps.bicep.outputs.publicIpAddress }}
echo "::add-mask::$PUBLIC_IP_ADDRESS"
echo "PUBLIC_IP_ADDRESS=$PUBLIC_IP_ADDRESS" >> "$GITHUB_ENV"
12 changes: 1 addition & 11 deletions .github/workflows/deploy-lts-prow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,7 @@ jobs:
failOnStdErr: false

- name: Fetch config
run: |
echo "PROW_HOST=${{ steps.bicep.outputs.prowHostName }}" >> "$GITHUB_ENV"
AZURE_STORAGE_ACCOUNT_USER=${{ steps.bicep.outputs.storageAccountName }}
echo "::add-mask::$AZURE_STORAGE_ACCOUNT_USER"
echo "AZURE_STORAGE_ACCOUNT_USER=$AZURE_STORAGE_ACCOUNT_USER" >> "$GITHUB_ENV"
PUBLIC_IP_NAME=${{ steps.bicep.outputs.publicIpName }}
echo "::add-mask::$PUBLIC_IP_NAME"
echo "PUBLIC_IP_NAME=$PUBLIC_IP_NAME" >> "$GITHUB_ENV"
PUBLIC_IP_ADDRESS=${{ steps.bicep.outputs.publicIpAddress }}
echo "::add-mask::$PUBLIC_IP_ADDRESS"
echo "PUBLIC_IP_ADDRESS=$PUBLIC_IP_ADDRESS" >> "$GITHUB_ENV"
run: ${PWD}/.github/scripts/bicep2env.sh

- name: Fetch storage key
id: fetch-storage-key
Expand Down

0 comments on commit fc24be1

Please sign in to comment.