Skip to content

Commit 0cd0de6

Browse files
committed
secret variables 가져오는 방식 변경
1 parent 0a79232 commit 0cd0de6

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/deploy_on_dev.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
python-version: [3.8]
1515

1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1818
- uses: psf/black@stable
19-
with:
19+
with:
2020
options: "--check --verbose"
2121
src: "./pyconweb2022"
2222

@@ -57,17 +57,17 @@ jobs:
5757
pip install pytest
5858
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
5959
60-
# Pull request dose not get the gitub action secrets
61-
# this section will be applied to the deploy workflow
62-
- name: Setup Auth for Private Repo
63-
uses: webfactory/[email protected]
60+
# Checkout and import zappa config & environment variables from secrets repo
61+
- name: Checkout secrets repo
62+
uses: actions/checkout@v4
6463
with:
65-
ssh-private-key: ${{ secrets.SSH_SECRET_GOLONY }}
66-
# ssh-private-key: ${{ secrets.GH_PYCONKR_SECRETS }}
67-
68-
- name: update pyconkr-secretes
69-
run: |
70-
./update_secrets.sh
64+
repository: ${{ secrets.PYCONKR_SECRET_REPOSITORY }}
65+
ssh-key: ${{ secrets.PYCONKR_SECRET_REPOSITORY_DEPLOY_KEY }}
66+
path: secret_envs
67+
clean: false
68+
sparse-checkout-cone-mode: false
69+
sparse-checkout: ${{ steps.info.outputs.repository_name }}/zappa_settings.json
70+
- run: mv secret_envs/${{ steps.info.outputs.repository_name }}/*.json ./ && rm -rf secret_envs
7171

7272
- name: Test with Django Test
7373
run: |

0 commit comments

Comments
 (0)