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 760a328
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,6 @@ 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 }}:~/
# Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
# Install Docker Compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
# Login to Docker Hub
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }}
# Pull the latest image
docker pull ${{ env.DOCKER_REPO }}:latest
# Run Docker Compose
docker-compose -f docker-compose.production.yml up --build --detach
docker service update --image ${{ env.DOCKER_REPO }}:latest ${{ env.SERVICE_NAME }}

0 comments on commit 760a328

Please sign in to comment.