1
0
mirror of synced 2026-01-01 00:02:54 -05:00
Files
airbyte/tools/ci_credentials

CI Credentials

Connects to GSM to download connection details.

Development

Set up the world the same way Google Actions does it in test-command.yml.

source venv/bin/activate
pip install --quiet tox==3.24.4
tox -r -c ./tools/tox_ci.ini
pip install --quiet -e ./tools/ci_*

Download a Service account json key that has access to Google Secrets Manager.

export GCP_GSM_CREDENTIALS=`cat ~/Downloads/key.json`

After making a change, you have to reinstall it to run the bash command: pip install --quiet -e ./tools/ci_*

Run it

The VERSION=dev will make it so it knows to use your local current working directory and not the Github Action one.

Pass in a connector name. For example:

VERSION=dev ci_credentials destination-snowflake

To make sure it get's all changes every time, you can run this:

pip install --quiet -e ./tools/ci_* && VERSION=dev ci_credentials destination-snowflake