Merge pull request #1250 from cityofaustin/md-8536-etl-data-tracker-sync #1
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
name: "Build Data Tracker Sync ETL Docker image and push to DockerHub" | |
on: | |
push: | |
branches: | |
- main | |
- production | |
paths: | |
- ".github/workflows/atd_moped_data_tracker_sync.yml" | |
- "moped-etl/data-tracker-sync/**" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build Data Tracker Sync ETL Docker image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build and push image | |
uses: docker/build-push-action@v4 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: atddocker/atd-moped-etl-data-tracker-sync:${{ github.ref_name }} | |
context: ./moped-etl/data-tracker-sync |