This commit is contained in:
@@ -49,8 +49,8 @@ steps:
|
|||||||
- docker build --tag worktime:latest /home/webmaster/worktime/backend
|
- docker build --tag worktime:latest /home/webmaster/worktime/backend
|
||||||
- name: restart docker
|
- name: restart docker
|
||||||
commands:
|
commands:
|
||||||
- docker stop worktime
|
- docker stop worktime || true
|
||||||
- docker rm worktime
|
- docker rm worktime || true
|
||||||
- docker run --name worktime -p 3003:3000 -d worktime
|
- docker run --name worktime -p 3003:3000 -d worktime
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
|
|||||||
33
.github/workflows/deploy.yml
vendored
33
.github/workflows/deploy.yml
vendored
@@ -1,33 +0,0 @@
|
|||||||
name: CI and DI
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-deploy:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Set-up Node
|
|
||||||
uses: actions/setup-node@v1
|
|
||||||
with:
|
|
||||||
node-version: "14.2.x"
|
|
||||||
|
|
||||||
- run: npm install
|
|
||||||
- run: npm run build
|
|
||||||
|
|
||||||
- name: Deploy
|
|
||||||
uses: crazy-max/ghaction-github-pages@v1
|
|
||||||
with:
|
|
||||||
target_branch: gh-pages
|
|
||||||
build_dir: dist
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user