Skip to content

i like my job

i like my job #12

name: "Build AGOL ETL Docker image and push to DockerHub"
on:
push:
branches:
- main
- production
paths:
- ".github/workflows/atd_moped_etl_arcgis_docker.yml"
- "moped-etl/arcgis/**"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
name: Build AGOL 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-arcgis:${{ github.ref_name }}
context: ./moped-etl/arcgis