-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update ci workflows for new server
- Loading branch information
Showing
3 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
branches: | ||
- 'main' | ||
paths: | ||
- '.github/workflows/**' | ||
- 'Thaliak.Common.Database/**' | ||
- 'Thaliak.Service.Poller/**' | ||
|
||
|
@@ -27,13 +28,12 @@ jobs: | |
context: . | ||
file: ./Thaliak.Service.Poller/Dockerfile | ||
push: true | ||
tags: ghcr.io/avafloww/thaliak-poller:latest | ||
tags: ghcr.io/CrystallineTools/thaliak-poller:latest | ||
- name: Deploy to production server | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.REMOTE_HOST }} | ||
port: ${{ secrets.REMOTE_PORT }} | ||
username: ${{ secrets.REMOTE_USER }} | ||
key: ${{ secrets.REMOTE_SSH_KEY }} | ||
# todo: update if we ever care about supporting a staging env | ||
script: sudo /home/deploy/deploy-thaliak.sh poller main | ||
script: ~/gha-deploy.sh poller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
branches: | ||
- 'main' | ||
paths: | ||
- '.github/workflows/**' | ||
- 'Thaliak.Web/**' | ||
|
||
jobs: | ||
|
@@ -26,12 +27,12 @@ jobs: | |
context: . | ||
file: ./Thaliak.Web/Dockerfile | ||
push: true | ||
tags: ghcr.io/avafloww/thaliak-web:latest | ||
tags: ghcr.io/CrystallineTools/thaliak-web:latest | ||
- name: Deploy to production server | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.REMOTE_HOST }} | ||
port: ${{ secrets.REMOTE_PORT }} | ||
username: ${{ secrets.REMOTE_USER }} | ||
key: ${{ secrets.REMOTE_SSH_KEY }} | ||
script: sudo /home/deploy/deploy-thaliak.sh web main | ||
script: ~/gha-deploy.sh web |