We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01a4ec1 commit 22c5ef9Copy full SHA for 22c5ef9
.github/workflows/backend-cd.yml
@@ -45,17 +45,13 @@ jobs:
45
- name: Deploy on EC2 via SSH
46
env:
47
APP_YML: ${{ secrets.APPLICATION_YML }}
48
- DOCKER_COMPOSE_YML: ${{ secrets.DOCKER_COMPOSE_YML }}
49
run: |
50
ssh -i key.pem ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} << 'EOF'
51
cd ~/capstone-2025-24
52
git pull
53
cat > backend/src/main/resources/application.yml << 'END_YML'
54
$APP_YML
55
END_YML
56
- cat > docker-compose.yml << 'END_DOCKER'
57
- $DOCKER_COMPOSE_YML
58
- END_DOCKER
59
docker-compose down
60
docker-compose build
61
docker-compose up -d
0 commit comments