From 13f6426e16021f78b99322756fbed6b0f9eea3a4 Mon Sep 17 00:00:00 2001 From: MU-Software Date: Wed, 28 Aug 2024 22:14:15 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20zappa=5Fsettings.json=20=EA=B0=80?= =?UTF-8?q?=EC=A0=B8=EC=98=A4=EB=8A=94=20=EB=B0=A9=EC=8B=9D=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy_on_dev.yml | 22 +++++++++++----------- .github/workflows/deploy_on_prod.yml | 22 +++++++++++----------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/deploy_on_dev.yml b/.github/workflows/deploy_on_dev.yml index 8d28ced..eba6bf4 100644 --- a/.github/workflows/deploy_on_dev.yml +++ b/.github/workflows/deploy_on_dev.yml @@ -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/ssh-agent@v0.5.4 + # 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: | diff --git a/.github/workflows/deploy_on_prod.yml b/.github/workflows/deploy_on_prod.yml index 4a0e737..1fa8b18 100644 --- a/.github/workflows/deploy_on_prod.yml +++ b/.github/workflows/deploy_on_prod.yml @@ -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/ssh-agent@v0.5.4 + # 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: |