|
| 1 | +name: Publish AirbyteLib Manually |
| 2 | +on: workflow_dispatch |
| 3 | + |
| 4 | +concurrency: |
| 5 | + group: publish-airbyte-lib |
| 6 | + cancel-in-progress: false |
| 7 | + |
| 8 | +jobs: |
| 9 | + get_ci_runner: |
| 10 | + runs-on: ubuntu-latest |
| 11 | + name: Get CI runner |
| 12 | + steps: |
| 13 | + - name: Checkout Airbyte |
| 14 | + uses: actions/checkout@v3 |
| 15 | + with: |
| 16 | + ref: ${{ github.head_ref }} |
| 17 | + token: ${{ secrets.GH_PAT_APPROVINGTON_OCTAVIA }} |
| 18 | + fetch-depth: 1 |
| 19 | + - name: Get CI runner |
| 20 | + id: get_ci_runner |
| 21 | + uses: ./.github/actions/airbyte-ci-requirements |
| 22 | + with: |
| 23 | + runner_type: "publish" |
| 24 | + runner_size: "large" |
| 25 | + # Getting ci requirements for connectors publish command as there is no special one for poetry publish |
| 26 | + airbyte_ci_command: "connectors publish" |
| 27 | + github_token: ${{ secrets.GH_PAT_APPROVINGTON_OCTAVIA }} |
| 28 | + sentry_dsn: ${{ secrets.SENTRY_AIRBYTE_CI_DSN }} |
| 29 | + outputs: |
| 30 | + runner_name: ${{ steps.get_ci_runner.outputs.runner_name }} |
| 31 | + publish_connectors: |
| 32 | + name: Publish airbyte-lib |
| 33 | + needs: get_ci_runner |
| 34 | + runs-on: ${{ needs.get_ci_runner.outputs.runner_name }} |
| 35 | + steps: |
| 36 | + - name: Checkout Airbyte |
| 37 | + uses: actions/checkout@v3 |
| 38 | + - name: Publish |
| 39 | + id: publish-airbyte-lib |
| 40 | + uses: ./.github/actions/run-dagger-pipeline |
| 41 | + with: |
| 42 | + context: "manual" |
| 43 | + dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN }} |
| 44 | + docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }} |
| 45 | + docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }} |
| 46 | + gcp_gsm_credentials: ${{ secrets.GCP_GSM_CREDENTIALS }} |
| 47 | + gcs_credentials: ${{ secrets.METADATA_SERVICE_PROD_GCS_CREDENTIALS }} |
| 48 | + github_token: ${{ secrets.GITHUB_TOKEN }} |
| 49 | + metadata_service_gcs_credentials: ${{ secrets.METADATA_SERVICE_PROD_GCS_CREDENTIALS }} |
| 50 | + sentry_dsn: ${{ secrets.SENTRY_AIRBYTE_CI_DSN }} |
| 51 | + slack_webhook_url: ${{ secrets.PUBLISH_ON_MERGE_SLACK_WEBHOOK }} |
| 52 | + spec_cache_gcs_credentials: ${{ secrets.SPEC_CACHE_SERVICE_ACCOUNT_KEY_PUBLISH }} |
| 53 | + s3_build_cache_access_key_id: ${{ secrets.SELF_RUNNER_AWS_ACCESS_KEY_ID }} |
| 54 | + s3_build_cache_secret_key: ${{ secrets.SELF_RUNNER_AWS_SECRET_ACCESS_KEY }} |
| 55 | + tailscale_auth_key: ${{ secrets.TAILSCALE_AUTH_KEY }} |
| 56 | + subcommand: 'poetry --package-path=airbyte-lib publish --registry-url="https://test.pypi.org/legacy/"' |
| 57 | + python_registry_token: ${{ secrets.PYPI_TOKEN }} |
0 commit comments