Skip to content

AE-956 [ads] Collect DAP results and add to BigQuery table #10

AE-956 [ads] Collect DAP results and add to BigQuery table

AE-956 [ads] Collect DAP results and add to BigQuery table #10

###
# This file was generated by docker-etl/ci_config.py.
# Changes should be made to job ci_job.yaml files and re-generated.
###
name: ads-attribution-dap-collector
on:
push:
branches:
- main
paths:
- 'jobs/ads-attribution-dap-collector/**'
- '.github/workflows/job-ads-attribution-dap-collector.yml'
pull_request:
paths:
- 'jobs/ads-attribution-dap-collector/**'
- '.github/workflows/job-ads-attribution-dap-collector.yml'
jobs:
build-job-ads-attribution-dap-collector:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Build the Docker image
# yamllint disable
run: |
docker build jobs/ads-attribution-dap-collector -t us-docker.pkg.dev/moz-fx-data-artifacts-prod/docker-etl/ads-attribution-dap-collector:latest
# yamllint enable
- name: Test Code
run: docker run us-docker.pkg.dev/moz-fx-data-artifacts-prod/docker-etl/ads-attribution-dap-collector:latest python3 -m pytest
push-job-ads-attribution-dap-collector:
runs-on: ubuntu-latest
needs: build-job-ads-attribution-dap-collector
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCP_CREDENTIALS }}
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v2
- name: Configure Docker for GCR
run: gcloud auth configure-docker
- name: Build Docker image
run: docker build jobs/ads-attribution-dap-collector/ -t gcr.io/$${{ secrets.GCP_PROJECT }}/ads-attribution-dap-collector_docker_etl:latest
- name: Push to GCR
run: docker push gcr.io/$${{ secrets.GCP_PROJECT }}/ads-attribution-dap-collector_docker_etl:latest