Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
mbappai committed Aug 3, 2023
2 parents c915803 + 11821c3 commit 3448e27
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,19 @@ jobs:
sudo podman rm portal
sudo podman run --name="portal" -p 9082:3000 -d ghcr.io/weareflexable/portal:staging
- name: Deploy on Prod server
if: github.ref == 'refs/heads/prod'
uses: appleboy/ssh-action@v0.1.7
with:
host: ${{ secrets.DEV_REMOTE_SERVER_ADDRESS }}
username: ${{ secrets.DEV_SERVER_USERNAME }}
key: ${{ secrets.DEV_REMOTE_SERVER_KEY }}
port: ${{ secrets.DEV_SSH_PORT }}
script: |
pwd
cd ~
echo ${{ secrets.GHCR_TOKEN }} | podman login ghcr.io -u secrets.GHCR_USERNAME --password-stdin
sudo podman pull ghcr.io/weareflexable/portal:prod
sudo podman stop portal
sudo podman rm portal
sudo podman run --name="portal" -p 9083:3000 -d ghcr.io/weareflexable/portal:prod

0 comments on commit 3448e27

Please sign in to comment.