Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
ci: Adds CI job to autodeploy docker
Browse files Browse the repository at this point in the history
  • Loading branch information
frgfm committed Oct 26, 2023
1 parent bafc811 commit 4f9ca9f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,17 @@ jobs:
password: ${{ secrets.DOCKERHUB_PW }}
- name: Push to hub
run: docker push quackai/contribution-api:latest

deploy-dev:
needs: dockerhub
runs-on: ubuntu-latest
steps:
- uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_DEV_HOST }}
username: ${{ secrets.SSH_DEV_USERNAME }}
key: ${{ secrets.SSH_DEPLOY_DEV }}
script: |
docker pull quackai/contribution-api:latest
cd devops && docker compose stop backend && docker compose up -d
docker inspect -f '{{ .Created }}' $(docker compose images -q backend)

0 comments on commit 4f9ca9f

Please sign in to comment.