Skip to content

Commit

Permalink
Update CI to deploy image on push
Browse files Browse the repository at this point in the history
  • Loading branch information
tesence committed Aug 24, 2024
1 parent accbd23 commit 349612e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/image.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,14 @@ jobs:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/gumo:latest

- name: Deploy new image
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
port: ${{ secrets.SSH_PORT }}
key: ${{ secrets.SSH_KEY }}
script: |
docker compose --file ${{ secrets.DOCKER_COMPOSE_FILE }} down --rmi all gumo
docker compose --file ${{ secrets.DOCKER_COMPOSE_FILE }} up -d --force-recreate gumo

0 comments on commit 349612e

Please sign in to comment.