Skip to content

Instantly share code, notes, and snippets.

@syntaqx
Last active November 24, 2021 04:07
Show Gist options
  • Save syntaqx/0a56391421454fe7e48fdfa108a9d9a8 to your computer and use it in GitHub Desktop.
Save syntaqx/0a56391421454fe7e48fdfa108a9d9a8 to your computer and use it in GitHub Desktop.
Airflow CI & CD
name: CI
on:
push:
branches:
- main
tags:
- 'v*.*.*'
pull_request:
branches:
- main
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to Astro Container Registry
uses: docker/login-action@v1
with:
registry: registry.astro.dataeng.entrata.io
username: _
password: ${{ secrets.SERVICE_ACCOUNT_KEY }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: registry.astro.dataeng.entrata.io/edw-airflow/airflow:ci-${{ github.sha }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment