edit glue create job kwargs #11
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: CD_AIRFLOW | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'airflow/**' | |
jobs: | |
deploy_to_ec2: | |
name: deploy_to_EC2 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Deploy to server | |
uses: easingthemes/ssh-deploy@main | |
with: | |
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }} | |
REMOTE_HOST: ${{ secrets.REMOTE_HOST }} | |
REMOTE_USER: ${{ secrets.REMOTE_USER }} | |
SOURCE: "/airflow/" | |
TARGET: "/home/ubuntu/airflow" | |
# SCRIPT_AFTER: | | |
# cd airflow | |
# echo -e "AIRFLOW_UID=$(id -u)\nAIRFLOW_GID=0" > .env | |
# sudo docker build -t apache-airflow-amazon:aws-dorian . | |
# sudo docker compose up airflow-init | |
# sudo docker compose up -d | |