Merge pull request #83 from xuwenyihust/16-support-notebook-scheduling #9
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 Docker - Airflow | |
on: | |
push: | |
paths: | |
- 'docker/airflow/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Docker Build & Push | |
run: | | |
timestamp=$(date +"%Y%m%d%H%M%S") | |
docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/airflow:$timestamp -f docker/airflow/Dockerfile ./docker/airflow | |
docker tag ${{ secrets.DOCKERHUB_USERNAME }}/airflow:$timestamp ${{ secrets.DOCKERHUB_USERNAME }}/airflow:latest | |
docker push ${{ secrets.DOCKERHUB_USERNAME }}/airflow:$timestamp | |
docker push ${{ secrets.DOCKERHUB_USERNAME }}/airflow:latest | |