Skip to content

Commit b8881a3

Browse files
committed
프로덕션 deploy workflow 수정
1 parent c34ed40 commit b8881a3

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/deploy.yml

+17-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v2
1818
- uses: psf/black@stable
19-
with:
19+
with:
2020
options: "--check --verbose"
2121
src: "./pyconweb2022"
2222

@@ -65,9 +65,23 @@ jobs:
6565
ssh-private-key: ${{ secrets.SSH_SECRET_GOLONY }}
6666
# ssh-private-key: ${{ secrets.GH_PYCONKR_SECRETS }}
6767

68-
- name: update pyconkr-secretes
68+
- name: Get current date and repo name
69+
id: info
6970
run: |
70-
./update_secrets.sh
71+
echo "::set-output name=date::$(date +'%Y-%m-%d_%H:%M:%S')"
72+
echo "::set-output name=repository_name::$(echo ${{ github.repository }} | sed -e 's/${{ github.repository_owner }}\///')"
73+
74+
# Checkout and import zappa config & environment variables from secrets repo
75+
- name: Checkout secrets repo
76+
uses: actions/checkout@v4
77+
with:
78+
repository: ${{ secrets.PYCONKR_SECRET_REPOSITORY }}
79+
ssh-key: ${{ secrets.PYCONKR_SECRET_REPOSITORY_DEPLOY_KEY }}
80+
path: secret_envs
81+
clean: false
82+
sparse-checkout-cone-mode: false
83+
sparse-checkout: ${{ steps.info.outputs.repository_name }}/pyconweb2022/zappa_settings.json
84+
- run: mv secret_envs/${{ steps.info.outputs.repository_name }}/pyconweb2022/zappa_settings.json ./pyconweb2022 && rm -rf secret_envs
7185

7286
- name: Test with pytest
7387
run: |

0 commit comments

Comments
 (0)