-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
393 additions
and
79 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Generic worker executor. This is callable for use with cron scheduling. | ||
|
||
# Execute the worker for a specific group | ||
name: warehouse-meltano-sync | ||
|
||
inputs: | ||
tap: | ||
description: The name of the tap | ||
required: true | ||
target: | ||
description: The name of the target | ||
required: true | ||
meltano_path: | ||
description: The path to meltano | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10.13' | ||
|
||
- uses: snok/install-poetry@v1 | ||
with: | ||
version: '1.7.1' | ||
- name: Install poetry deps for meltano | ||
shell: bash | ||
run: | | ||
cd ${{ inputs.meltano_path }} && poetry install && meltano install | ||
- name: Run tap:${{ inputs.tap }} into target:${{ inputs.target }} | ||
shell: bash | ||
# This is for testing for now | ||
run: | | ||
env | ||
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# This is a test meltano pipeline | ||
name: meltano-ecosystem-ost | ||
env: | ||
X_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
TAP_ECOSYSTEMS_OST_AIRBYTE_CONFIG_PASSWORD: ${{ secrets.TAP_ECOSYSTEMS_OST_AIRBYTE_CONFIG_PASSWORD }} | ||
TAP_ECOSYSTEMS_OST_AIRBYTE_CONFIG_HOST: ${{ secrets.TAP_ECOSYSTEMS_OST_AIRBYTE_CONFIG_HOST }} | ||
TAP_ECOSYSTEMS_OST_AIRBYTE_CONFIG_DATABASE: ${{ secrets.TAP_ECOSYSTEMS_OST_AIRBYTE_CONFIG_DATABASE }} | ||
TAP_ECOSYSTEMS_OST_AIRBYTE_CONFIG_PORT: ${{ secrets.TAP_ECOSYSTEMS_OST_AIRBYTE_CONFIG_PORT }} | ||
TAP_ECOSYSTEMS_OST_AIRBYTE_CONFIG_USERNAME: ${{ secrets.TAP_ECOSYSTEMS_OST_AIRBYTE_CONFIG_USERNAME }} | ||
MELTANO_STATE_BACKEND_URI: ${{ secrets.MELTANO_STATE_BACKEND_URI }} | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
meltano-ecosystem-ost: | ||
name: meltano-ecosystem-ost | ||
environment: indexer | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: 'read' | ||
id-token: 'write' | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- uses: 'google-github-actions/auth@v2' | ||
with: | ||
credentials_json: '${{ secrets.GOOGLE_CREDENTIALS_JSON }}' | ||
create_credentials_file: true | ||
|
||
- name: Run meltano | ||
uses: ./.github/workflows/meltano | ||
with: | ||
tap: tap-ecosystems-ost | ||
target: target-bigquery | ||
env: | ||
TARGET_BIGQUERY_CREDENTIALS_PATH: ${{ env.GOOGLE_APPLICATION_CREDENTIALS }} | ||
TARGET_BIGQUERY_BUCKET: oso-dataset-transfer-bucket | ||
TARGET_BIGQUERY_PROJECT: opensource-observer | ||
TARGET_BIGQUERY_DATASET: ecosystems-ost |
This file contains 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
Oops, something went wrong.