Skip to content

Commit

Permalink
Restart docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
psiemens committed Dec 3, 2024
1 parent 45920a3 commit 194ba15
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,6 @@ jobs:
# path: 'static'
# destination: 'ubyssey-staging'

# - uses: 'google-github-actions/ssh-compute@v1'
# with:
# instance_name: 'ubyssey-staging-vm-1'
# zone: 'us-west1-a'
# ssh_private_key: '${{ secrets.GCP_SSH_PRIVATE_KEY_STAGING }}'
# command: 'echo Hello world'

- name: Configure SSH
run: |
mkdir -p ~/.ssh/
Expand All @@ -78,3 +71,5 @@ jobs:
- name: Update docker-compose.yml
run: scp docker-compose.yml staging:/opt/ubyssey.ca/docker-compose.yml

- name: Restart services
run: ssh staging 'docker compose -f /opt/ubyssey.ca/docker-compose.yml -p ubyssey up -d'

0 comments on commit 194ba15

Please sign in to comment.