Skip to content

Commit eb808ba

Browse files
authored
Update deploy workflows (#1742)
1 parent 7ca5bdb commit eb808ba

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/prod-deploy.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@ jobs:
3838
- name: Install dependencies
3939
run: pipenv install --dev
4040

41+
- name: Checkout ansible-playbook-airflow (private)
42+
uses: actions/checkout@v3
43+
with:
44+
repository: your-org/ansible-playbook-airflow
45+
token: ${{ secrets.MY_PAT }}
46+
path: ansible-playbook-airflow
47+
4148
- name: Run Ansible Airflow Playbook for Prod
4249
run: |
43-
cd ..
44-
git clone --single-branch --branch main https://github.com/tulibraries/ansible-playbook-airflow.git
45-
cd ansible-playbook-airflow
46-
pipenv install
4750
pipenv run ansible-galaxy install -r requirements.yml
4851
cp .github/.vault ~/.vault;
4952
chmod +x ~/.vault

.github/workflows/qa-deploy.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,15 @@ jobs:
3535
- name: Install dependencies
3636
run: pipenv install --dev
3737

38+
- name: Checkout ansible-playbook-airflow (private)
39+
uses: actions/checkout@v3
40+
with:
41+
repository: your-org/ansible-playbook-airflow
42+
token: ${{ secrets.MY_PAT }}
43+
path: ansible-playbook-airflow
44+
3845
- name: Run Ansible Airflow Playbook for QA
3946
run: |
40-
cd ..
41-
git clone --single-branch --branch qa https://github.com/tulibraries/ansible-playbook-airflow.git
42-
cd ansible-playbook-airflow
43-
pipenv install
4447
pipenv run ansible-galaxy install -r requirements.yml
4548
cp .github/.vault ~/.vault;
4649
chmod +x ~/.vault

0 commit comments

Comments
 (0)