-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (42 loc) · 1.35 KB
/
deploy-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Deploy Dev
on:
workflow_dispatch:
jobs:
deploy-dev:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11.7
- name: Install poetry
shell: bash
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "/root/.local/bin" >> $GITHUB_PATH
- name: Create requirements.txt
shell: bash
run: poetry export --without-hashes --format=requirements.txt > requirements.txt
- name: Install Python dependencies
run: |
python3 -m pip install --upgrade pip
pip install -r requirements.txt
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.11.0
- name: Install and build frontend dependencies
working-directory: ./nad_ch/controllers/web
run: |
npm install
npm run build
- name: Deploy to dev environment
uses: cloud-gov/cg-cli-tools@main
with:
cf_username: ${{ secrets.CF_USERNAME }}
cf_password: ${{ secrets.CF_PASSWORD }}
cf_org: ${{ secrets.CF_ORG }}
cf_space: ${{ secrets.CF_SPACE }}
command: "cf push nad-ch-dev -f manifest-dev.yml"