From 0f53cf20556ba3096342398c7f05d09ff9d57553 Mon Sep 17 00:00:00 2001 From: James Mortemore Date: Tue, 9 Apr 2024 18:17:05 +0100 Subject: [PATCH] feat: switch to captain --- .github/workflows/deploy.yaml | 52 ----------------------------------- captain-definition | 4 +++ 2 files changed, 4 insertions(+), 52 deletions(-) delete mode 100644 .github/workflows/deploy.yaml create mode 100644 captain-definition diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml deleted file mode 100644 index fd87b4862..000000000 --- a/.github/workflows/deploy.yaml +++ /dev/null @@ -1,52 +0,0 @@ ---- -name: 'deploy' - -on: - push: - branches: - - master - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - # third-party action that cancels previous runs - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.12.0 - with: - access_token: ${{ github.token }} - - - name: Cloning repo - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: 18.x - - - name: Cache Node.js modules - uses: actions/cache@v3 - with: - # npm cache files are stored in `~/.npm` on Linux/macOS - path: ~/.npm - key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.OS }}-node- - ${{ runner.OS }}- - - - uses: webfactory/ssh-agent@v0.8.0 - with: - ssh-private-key: ${{ secrets.SSH_DOKKU_KEY }} - - - name: Deploy - run: | - ssh-keyscan ${{ secrets.DOKKU_HOST }} >> ~/.ssh/known_hosts - git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - git config --global user.name "github-actions" - git config --global push.default simple - git remote add deploy dokku@${{ secrets.DOKKU_HOST }}:demo.banmanagement.com >/dev/null 2>&1 - git stash --all - git checkout master - git push -f deploy master >/dev/null 2>&1 diff --git a/captain-definition b/captain-definition new file mode 100644 index 000000000..0e14f8239 --- /dev/null +++ b/captain-definition @@ -0,0 +1,4 @@ +{ + "schemaVersion": 2, + "dockerfilePath": "./Dockerfile" +}