Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
pH-7 committed May 10, 2024
1 parent 3b522b8 commit 8ba240d
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,17 @@ jobs:
key: ${{ secrets.SSHKEY }}
passphrase: ${{ secrets.PASSPHRASE }}
script: |
# Copy docker-compose.production.yml to the server
scp -r docker-compose.production.yml ${{ secrets.USERNAME }}@${{ secrets.HOST }}:~/
# Create docker-compose.production.yml on the server
cat <<EOF > docker-compose.production.yml
version: "3"
services:
production-server:
image: ${{ env.DOCKER_REPO }}:latest
restart: always
ports:
- "80:80"
EOF
# Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh
Expand All @@ -62,4 +71,4 @@ jobs:
docker pull ${{ env.DOCKER_REPO }}:latest
# Run Docker Compose
docker-compose -f docker-compose.production.yml up --build --detach
docker-compose -f docker-compose.production.yml up -d

0 comments on commit 8ba240d

Please sign in to comment.