Skip to content

Commit 93f618c

Browse files
committed
update: zappa CI 스크립트 작성
1 parent 59fc2bd commit 93f618c

File tree

3 files changed

+24
-13
lines changed

3 files changed

+24
-13
lines changed

.github/workflows/deploy_on_dev.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
python-version: [3.8]
13+
python-version: [3.9]
1414

1515
steps:
1616
- uses: actions/checkout@v2
@@ -42,15 +42,15 @@ jobs:
4242
4343
- name: Create Virtualenv
4444
run: |
45-
virtualenv pyconweb2022-zappa
45+
virtualenv zappa-env
4646
4747
# - name: Activate Virtualenv
4848
# run: |
49-
# source ./pyconweb2022-zappa/bin/activate
49+
# source ./zappa-env/bin/activate
5050

5151
- name: Install dependencies
5252
run: |
53-
source ./pyconweb2022-zappa/bin/activate
53+
source ./zappa-env/bin/activate
5454
python -m pip install --upgrade pip
5555
pip install pytest
5656
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
@@ -69,14 +69,13 @@ jobs:
6969
7070
- name: Test with Django Test
7171
run: |
72-
source ./pyconweb2022-zappa/bin/activate
73-
cd pyconweb2022
72+
source ./zappa-env/bin/activate
7473
python manage.py test
7574
76-
- name: Test with pytest
77-
run: |
78-
source ./pyconweb2022-zappa/bin/activate
79-
pytest pyconweb2022
75+
# - name: Test with pytest
76+
# run: |
77+
# source ./zappa-env/bin/activate
78+
# pytest pyconweb2022
8079

8180
- name: Configure AWS Credentials
8281
uses: aws-actions/configure-aws-credentials@v1
@@ -90,7 +89,6 @@ jobs:
9089
AWS_ACCESS_KEY_ID: ${{ secrets.PYCON_DEV_2021_AWS_KEY }}
9190
AWS_SECRET_ACCESS_KEY: ${{ secrets.PYCON_DEV_2021_AWS_SECRET }}
9291
run: |
93-
source ./pyconweb2022-zappa/bin/activate
94-
cd pyconweb2022
95-
zappa update dev
92+
source ./zappa-env/bin/activate
93+
zappa update dev2023
9694
# zappa manage dev collectstatic

requirements.txt

-242 Bytes
Binary file not shown.

update_secret.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
# REPO_BASE_URL="github.com/pythonkr/pyconkr-secrets.git"
4+
# REPO_URL="https://${REPO_BASE_URL}"
5+
REPO_URL="git@github.com:pythonkr/pyconkr-secrets.git"
6+
7+
# checkout repo from github
8+
mkdir -p .temp
9+
pushd .temp
10+
git clone --depth=1 ${REPO_URL}
11+
rsync -arv ./pyconkr-secrets/pyconkr-api-v2/ ..
12+
popd
13+
rm -rf ./.temp

0 commit comments

Comments
 (0)