diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml new file mode 100644 index 0000000000..7aed05ddd7 --- /dev/null +++ b/.github/workflows/deployment.yml @@ -0,0 +1,28 @@ +name: Deployment + +on: + push: + branches: interim + +jobs: + test: + uses: SeaGL/osem/.github/workflows/spec.yml@interim + + deploy: + needs: test + concurrency: { group: production, cancel-in-progress: true } + environment: production + runs-on: ubuntu-latest + steps: + - name: Clone + uses: actions/checkout@v2 + with: + fetch-depth: 0 # Complete + + - name: Push to Dokku + uses: dokku/github-action@master + with: + ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} + git_remote_url: 'ssh://dokku@dokku.seagl.org/osem' + git_push_flags: '--force' + branch: main diff --git a/.github/workflows/spec.yml b/.github/workflows/spec.yml index 7da756c6a0..c1a1efd462 100644 --- a/.github/workflows/spec.yml +++ b/.github/workflows/spec.yml @@ -1,12 +1,7 @@ name: Specs on: - push: - branches: - - master - pull_request: - branches: - - master + workflow_call: workflow_dispatch: jobs: diff --git a/CHECKS b/CHECKS new file mode 100644 index 0000000000..b498fd495d --- /dev/null +++ b/CHECKS @@ -0,0 +1 @@ +/