Skip to content

Commit

Permalink
Unify publish and deploy workflows for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
WillNilges committed Feb 10, 2024
1 parent 73b33cd commit 27d2500
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 22 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/deploy-to-grandsvc.yaml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/to-docker-hub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,17 @@ jobs:
build-args: |
"MESHDB_URL=${{ secrets.MESHDB_URL }}"
deploy_to_grandsvc:
needs: push_to_registry
runs-on: ubuntu-latest
steps:
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.GRANDSVC_KEY }}
name: id_ed25519 # optional
known_hosts: ${{ secrets.GRANDSVC_KNOWN_HOSTS }}
#config: ${{ secrets.CONFIG }} # ssh_config; optional
if_key_exists: fail # replace / ignore / fail; optional (defaults to fail)
- name: Pull new Docker image
run: ssh ${{ secrets.GRANDSVC_SSH_TARGET }} "cd ${{ secrets.GRANDSVC_PROJECT_PATH }} && git pull && docker compose pull && docker compose up -d"

0 comments on commit 27d2500

Please sign in to comment.