From d3afe8dd9239c7d4ca95543c9c2099cbf5005d9c Mon Sep 17 00:00:00 2001 From: Sejeong Kim Date: Sun, 27 Oct 2024 17:23:30 +0900 Subject: [PATCH] chore: test --- .github/workflows/aws-cicd.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/aws-cicd.yml b/.github/workflows/aws-cicd.yml index c93b3087..2d09c245 100644 --- a/.github/workflows/aws-cicd.yml +++ b/.github/workflows/aws-cicd.yml @@ -121,13 +121,13 @@ jobs: run: | echo "${{ secrets.APPLICATION_SECRET_PROPERTIES }}" > ./layer-api/infra/${{ env.DEPLOY_TARGET }}/application-secret.properties echo "${{ secrets.APPLICATION_SECRET_PROPERTIES }}" > ./layer-batch/src/main/resources/application-secret.properties - sudo chmod 777 ./layer-api/infra/aws/tokens/StoredCredential + sudo chmod 777 ./layer-api/infra/${{ env.DEPLOY_TARGET }}/tokens/StoredCredential # echo "${GOOGLE_CREDENTIALS}" > ./layer-api/src/main/resources/tokens/StoredCredential # echo "${GOOGLE_CREDENTIALS}" > ./layer-api/infra/aws/StoredCredential - name: Archive Files run: | - tar -cvzf layer-api.tar.gz ./layer-api/infra/aws/ + tar -cvzf layer-api.tar.gz ./layer-api/infra/${{ env.DEPLOY_TARGET }}/ - name: Send Docker Compose uses: appleboy/scp-action@master @@ -149,8 +149,8 @@ jobs: script: | cd /home/ubuntu tar -xvzf layer-api.tar.gz - sudo chmod -R 755 /home/ubuntu/layer-api/infra/aws - sudo chown -R ubuntu:ubuntu /home/ubuntu/layer-api/infra/aws + sudo chmod -R 755 /home/ubuntu/layer-api/infra/${{ env.DEPLOY_TARGET }} + sudo chown -R ubuntu:ubuntu /home/ubuntu/layer-api/infra/${{ env.DEPLOY_TARGET }} - name: Set Permissions on Transferred Files @@ -161,8 +161,8 @@ jobs: key: ${{ secrets.AWS_INSTANCE_PEM }} port: 22 script: | - sudo chmod -R 755 /home/ubuntu/layer-api/infra/aws - sudo chown -R ubuntu:ubuntu /home/ubuntu/layer-api/infra/aws + sudo chmod -R 755 /home/ubuntu/layer-api/infra/${{ env.DEPLOY_TARGET }} + sudo chown -R ubuntu:ubuntu /home/ubuntu/layer-api/infra/${{ env.DEPLOY_TARGET }} - name: Deploy with Docker Compose uses: appleboy/ssh-action@master