Handle initial setup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-05-10 03:30:45 +03:00
parent 2db8f4dafb
commit cd8046ed87
2 changed files with 2 additions and 35 deletions

View File

@@ -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:

View File

@@ -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 }}