Skip to content

Fix: zappa_settings.json 가져오는 방식 변경 #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading