Skip to content

Commit

Permalink
fix(#148): 환경 변수가 제대로 적용 안됨. {} 하나 더 추가.
Browse files Browse the repository at this point in the history
  • Loading branch information
kyeonkim committed Oct 20, 2024
1 parent b61ddd2 commit 25cfabf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
ECR_NAMESPACE: ${{ vars.ECR_NAMESPACE }}
ECR_REGISTRY: ${{ secrets.ECR_REGISTRY }}
with:
host: ${{ secrets.EC2_HOST }}
username: ubuntu
Expand All @@ -101,7 +99,7 @@ jobs:
aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username AWS --password-stdin ${{ secrets.ECR_REGISTRY }}
docker compose down
docker container prune -f
docker rmi $(docker images "${ECR_REGISTRY}/${ECR_NAMESPACE}/*" -q)
docker rmi $(docker images "${{ secrets.ECR_REGISTRY }}/${{ vars.ECR_NAMESPACE }}/*" -q)
sudo chmod +x /home/ubuntu/stop-used-port.sh && /home/ubuntu/stop-used-port.sh
docker compose pull --quiet
docker compose up -d --no-build

0 comments on commit 25cfabf

Please sign in to comment.