Skip to content

Commit f09ca19

Browse files
authored
Update build-nabla.yml, add deploy-production job
1 parent d514007 commit f09ca19

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/build-nabla.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,3 +251,19 @@ jobs:
251251
publish_dir: .badge-public
252252
keep_files: true
253253
commit_message: "[CI] badges update"
254+
255+
deploy-production:
256+
name: Deploy to production host
257+
if: ${{ always() && github.ref == 'refs/heads/master' }}
258+
needs: build-windows
259+
runs-on: ubuntu-latest
260+
261+
steps:
262+
- name: Pull latest images, re-run containers
263+
uses: appleboy/ssh-action@v1
264+
with:
265+
host: ${{ secrets.CE_HOST }}
266+
username: ${{ secrets.CE_USER }}
267+
key: ${{ secrets.CE_KEY }}
268+
script: |
269+
powershell -NoLogo -NoProfile -ExecutionPolicy Bypass -NoExit -File C:\Scripts\startup-docker.ps1

0 commit comments

Comments
 (0)