Skip to content

Commit

Permalink
Fix: zappa_settings.json 가져오는 방식 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
MU-Software committed Aug 28, 2024
1 parent 759a5ab commit 13f6426
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/deploy_on_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,18 @@ jobs:
pip install zappa
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# Pull request dose not get the gitub action secrets
# this section will be applied to the deploy workflows
- name: Setup Auth for Private Repo
uses: webfactory/[email protected]
# Checkout and import zappa config
- name: Checkout secrets repo
uses: actions/checkout@v4
with:
ssh-private-key: ${{ secrets.SSH_SECRET_GOLONY }}
# ssh-private-key: ${{ secrets.GH_PYCONKR_SECRETS }}

- name: update pyconkr-secretes
run: |
chmod 775 ./update_secrets.sh
./update_secrets.sh
repository: ${{ secrets.PYCONKR_SECRET_REPOSITORY }}
ssh-key: ${{ secrets.PYCONKR_SECRET_REPOSITORY_DEPLOY_KEY }}
path: secret_envs
clean: false
sparse-checkout-cone-mode: false
sparse-checkout: |
${{ steps.info.outputs.repository_name }}/zappa_settings.json
- run: mv secret_envs/${{ steps.info.outputs.repository_name }}/zappa_settings.json ./zappa_settings.json && rm -rf secret_envs

# - name: Test with Django Test
# run: |
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/deploy_on_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,18 @@ jobs:
pip install zappa
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# Pull request dose not get the gitub action secrets
# this section will be applied to the deploy workflows
- name: Setup Auth for Private Repo
uses: webfactory/[email protected]
# Checkout and import zappa config
- name: Checkout secrets repo
uses: actions/checkout@v4
with:
ssh-private-key: ${{ secrets.SSH_SECRET_GOLONY }}
# ssh-private-key: ${{ secrets.GH_PYCONKR_SECRETS }}

- name: update pyconkr-secretes
run: |
chmod 775 ./update_secrets.sh
./update_secrets.sh
repository: ${{ secrets.PYCONKR_SECRET_REPOSITORY }}
ssh-key: ${{ secrets.PYCONKR_SECRET_REPOSITORY_DEPLOY_KEY }}
path: secret_envs
clean: false
sparse-checkout-cone-mode: false
sparse-checkout: |
${{ steps.info.outputs.repository_name }}/zappa_settings.json
- run: mv secret_envs/${{ steps.info.outputs.repository_name }}/zappa_settings.json ./zappa_settings.json && rm -rf secret_envs

# - name: Test with Django Test
# run: |
Expand Down

0 comments on commit 13f6426

Please sign in to comment.