Skip to content

Commit

Permalink
ci: call the infra-restart binary on deploy
Browse files Browse the repository at this point in the history
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
  • Loading branch information
mssola committed Mar 14, 2024
1 parent a2f8715 commit 9274d47
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,15 @@ jobs:
docker login -u "${{ secrets.REGISTRY_USERNAME }}" -p "${{ secrets.REGISTRY_PASSWORD }}" ${{ secrets.REGISTRY_HOST }}
docker push ${{ secrets.REGISTRY_HOST }}/${{ secrets.REGISTRY_USERNAME }}/operum:main
docker logout ${{ secrets.REGISTRY_HOST }}
# The server provides a small script named `service-restart` which will do
# the right thing to pull the new image of the desired service and re-run
# it.
- name: Restart service with the new code
uses: garygrossgarten/github-action-ssh@release
with:
command: infra-restart operum
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USERNAME }}
passphrase: ${{ secrets.REMOTE_PASSPHRASE }}
privateKey: ${{ secrets.PRIVATE_KEY}}

0 comments on commit 9274d47

Please sign in to comment.