Skip to content

Commit

Permalink
put both configs in the same file
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymedina committed Nov 6, 2024
1 parent 00c2a3c commit 5babc72
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/test_with_clone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,16 @@ jobs:
echo 'authenticator = "SNOWFLAKE"' >> $config_file_dpe
# Config file for SYSADMIN
config_file_sysadmin=$(mktemp)
echo 'default_connection_name = "sysadmin"' >> $config_file_sysadmin
echo '[connections.sysadmin]' >> $config_file_sysadmin
echo "account = \"${SNOWFLAKE_ACCOUNT}\"" >> $config_file_sysadmin
echo "user = \"${SNOWFLAKE_USER}\"" >> $config_file_sysadmin
echo "role = \"${SNOWFLAKE_SCHEMACHANGE_ROLE}\"" >> $config_file_sysadmin
echo "password = \"${SNOWFLAKE_PASSWORD}\"" >> $config_file_sysadmin
echo "warehouse = \"${SNOWFLAKE_WAREHOUSE}\"" >> $config_file_sysadmin
echo 'authenticator = "SNOWFLAKE"' >> $config_file_sysadmin
echo '[connections.sysadmin]' >> $config_file_dpe
echo "account = \"${SNOWFLAKE_ACCOUNT}\"" >> $config_file_dpe
echo "user = \"${SNOWFLAKE_USER}\"" >> $config_file_dpe
echo "role = \"${SNOWFLAKE_SCHEMACHANGE_ROLE}\"" >> $config_file_dpe
echo "password = \"${SNOWFLAKE_PASSWORD}\"" >> $config_file_dpe
echo "warehouse = \"${SNOWFLAKE_WAREHOUSE}\"" >> $config_file_dpe
echo 'authenticator = "SNOWFLAKE"' >> $config_file_dpe
# Write config paths to environment
echo "SNOWFLAKE_CONFIG_PATH_DPE=$config_file_dpe" >> $GITHUB_ENV
echo "SNOWFLAKE_CONFIG_PATH_SYSADMIN=$config_file_sysadmin" >> $GITHUB_ENV
- name: Install Snowflake CLI with DPE_ENGINEER config
uses: Snowflake-Labs/[email protected]
Expand Down

0 comments on commit 5babc72

Please sign in to comment.