25 lines
625 B
YAML
25 lines
625 B
YAML
|
|
name: build-airflow-image
|
||
|
|
|
||
|
|
on: push
|
||
|
|
|
||
|
|
jobs:
|
||
|
|
build:
|
||
|
|
runs-on: ubuntu-22.04
|
||
|
|
steps:
|
||
|
|
- name: Checkout the repo
|
||
|
|
uses: actions/checkout@v4
|
||
|
|
- name: Setup Docker Buildx
|
||
|
|
uses: docker/setup-buildx-action@v1
|
||
|
|
- name: Login to the registry
|
||
|
|
uses: docker/login-action@v3
|
||
|
|
with:
|
||
|
|
registry: ${{ env.REGISTRY }}
|
||
|
|
username: ${{ github.actor }}
|
||
|
|
password: ${{ secrets.PACKAGE_TOKEN }}
|
||
|
|
- name: Build and Push
|
||
|
|
uses: docker/build-push-action@v6
|
||
|
|
with:
|
||
|
|
push: true
|
||
|
|
context: swiss-army-knife
|
||
|
|
file: Dockerfile-alpine
|