Skip to content

create job glue args #17

create job glue args

create job glue args #17

Workflow file for this run

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