-
Notifications
You must be signed in to change notification settings - Fork 6
fix: trigger downstream tasks when a new feed is added #815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
9b385e2
test: changing the log level
cka-y 34839bb
test: blocking execution until the message is published
cka-y 93aa81d
test: bypass
cka-y 6f9bb2c
test: bypass
cka-y 250ae4d
test: bypass
cka-y a8a06e1
test: bypass
cka-y e66ed46
fix: restore code
cka-y eaab962
fix: logging
cka-y 97cdbd3
Merge branch 'main' into feat/762
cka-y 302c490
fix: project id and topic path used
cka-y 672995a
fix: lint
cka-y 13449d1
fix: wait for all futures at the end
cka-y 41fc55d
fix: project id set up for dev
cka-y File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -87,7 +87,7 @@ jobs: | |
|
|
||
| - name: Google Cloud Setup | ||
| uses: google-github-actions/setup-gcloud@v2 | ||
|
|
||
| - name: Load secrets from 1Password | ||
| uses: 1password/[email protected] | ||
| with: | ||
|
|
@@ -97,12 +97,12 @@ jobs: | |
| GCP_FEED_SSH_USER: "op://rbiv7rvkkrsdlpcrz3bmv7nmcu/GCP_FEED_SSH_USER/username" | ||
| GCP_FEED_BASTION_NAME: "op://rbiv7rvkkrsdlpcrz3bmv7nmcu/GCP_FEED_BASTION_NAME/username" | ||
| GCP_FEED_BASTION_SSH_KEY: "op://rbiv7rvkkrsdlpcrz3bmv7nmcu/GCP_FEED_BASTION_SSH_KEY/private key" | ||
|
|
||
| - name: Tunnel | ||
| run: | | ||
| mkdir -p ~/.ssh | ||
| echo "${{ env.GCP_FEED_BASTION_SSH_KEY }}" > ~/.ssh/id_rsa | ||
| chmod 600 ~/.ssh/id_rsa | ||
| chmod 600 ~/.ssh/id_rsa | ||
| ./scripts/tunnel-create.sh -project_id ${{ inputs.PROJECT_ID }} -zone ${{ inputs.REGION }}-a -instance ${{ env.GCP_FEED_BASTION_NAME }}-${{ inputs.DB_ENVIRONMENT}} -target_account ${{ env.GCP_FEED_SSH_USER }} -db_instance ${{ secrets.POSTGRE_SQL_INSTANCE_NAME }} | ||
| sleep 10 # Wait for the tunnel to establish | ||
|
|
||
|
|
@@ -112,21 +112,21 @@ jobs: | |
| PGPASSWORD=${{ secrets.DB_USER_PASSWORD }} psql -h localhost -p 5432 -U ${{ secrets.DB_USER_NAME }} -d ${{ inputs.DB_NAME }} -c "SELECT version();" | ||
|
|
||
| - name: Run Liquibase | ||
| run: | | ||
| run: | | ||
| wget -O- https://repo.liquibase.com/liquibase.asc | gpg --dearmor > liquibase-keyring.gpg && \ | ||
| cat liquibase-keyring.gpg | sudo tee /usr/share/keyrings/liquibase-keyring.gpg > /dev/null && \ | ||
| echo 'deb [trusted=yes arch=amd64 signed-by=/usr/share/keyrings/liquibase-keyring.gpg] https://repo.liquibase.com stable main' | sudo tee /etc/apt/sources.list.d/liquibase.list | ||
|
|
||
| sudo apt-get update | ||
| sudo apt-get install liquibase=4.25.1 | ||
|
|
||
| export LIQUIBASE_CLASSPATH="liquibase" | ||
| export LIQUIBASE_COMMAND_CHANGELOG_FILE="changelog.xml" | ||
| export LIQUIBASE_COMMAND_URL=jdbc:postgresql://localhost:5432/${{ inputs.DB_NAME }} | ||
| export LIQUIBASE_COMMAND_USERNAME=${{ secrets.DB_USER_NAME }} | ||
| export LIQUIBASE_COMMAND_PASSWORD=${{ secrets.DB_USER_PASSWORD }} | ||
| export LIQUIBASE_LOG_LEVEL=FINE | ||
|
|
||
| liquibase update | ||
|
|
||
| db-content-update: | ||
|
|
@@ -224,7 +224,7 @@ jobs: | |
| if: ${{ github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch' }} | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Authenticate to Google Cloud QA/PROD | ||
| - name: Authenticate to Google Cloud | ||
| uses: google-github-actions/auth@v2 | ||
| with: | ||
| credentials_json: ${{ secrets.GCP_MOBILITY_FEEDS_SA_KEY }} | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.