From cd8046ed873e156bf5e143fe5548a6731e2ed431 Mon Sep 17 00:00:00 2001 From: anatolykopyl Date: Tue, 10 May 2022 03:30:45 +0300 Subject: [PATCH] Handle initial setup --- .drone.yml | 4 ++-- .github/workflows/deploy.yml | 33 --------------------------------- 2 files changed, 2 insertions(+), 35 deletions(-) delete mode 100644 .github/workflows/deploy.yml diff --git a/.drone.yml b/.drone.yml index 31270d2..835a6dd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -49,8 +49,8 @@ steps: - docker build --tag worktime:latest /home/webmaster/worktime/backend - name: restart docker commands: - - docker stop worktime - - docker rm worktime + - docker stop worktime || true + - docker rm worktime || true - docker run --name worktime -p 3003:3000 -d worktime trigger: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 7484ac5..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -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 }} -