[DENG-8809] Migrate CircleCI to Github Action #10
Workflow file for this run
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 was generated by docker-etl/ci_config.py. | |
| # Changes should be made to job ci_job.yaml files and re-generated. | |
| ### | |
| name: influxdb-to-bigquery | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| paths: | |
| - 'jobs/influxdb-to-bigquery/**' | |
| - '.github/workflows/job-influxdb-to-bigquery.yml' | |
| pull_request: | |
| paths: | |
| - 'jobs/influxdb-to-bigquery/**' | |
| - '.github/workflows/job-influxdb-to-bigquery.yml' | |
| jobs: | |
| build-job-influxdb-to-bigquery: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Build the Docker image | |
| # yamllint disable | |
| run: | | |
| docker build jobs/influxdb-to-bigquery -t us-docker.pkg.dev/moz-fx-data-artifacts-prod/docker-etl/influxdb-to-bigquery:latest | |
| # yamllint enable | |
| deploy-to-gar-influxdb-to-bigquery: | |
| name: Deploy influxdb-to-bigquery to GAR | |
| runs-on: ubuntu-latest | |
| needs: [build-job-influxdb-to-bigquery] | |
| if: github.ref == 'refs/heads/main' | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Build the Docker image | |
| # yamllint disable | |
| run: | | |
| docker build jobs/influxdb-to-bigquery -t us-docker.pkg.dev/moz-fx-data-artifacts-prod/docker-etl/influxdb-to-bigquery:latest | |
| # yamllint enable | |
| - name: Push Docker image latest to GAR | |
| uses: mozilla-it/deploy-actions/[email protected] | |
| with: | |
| project_id: moz-fx-data-artifacts-prod | |
| image_tags: us-docker.pkg.dev/moz-fx-data-artifacts-prod/docker-etl/influxdb-to-bigquery:latest | |
| workload_identity_pool_project_number: ${{ vars.GCPV2_WORKLOAD_IDENTITY_POOL_PROJECT_NUMBER }} | |
| service_account_name: docker-etl |