diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml new file mode 100644 index 00000000..865f4524 --- /dev/null +++ b/.github/workflows/deployment.yml @@ -0,0 +1,19 @@ +name: Deployment + +on: + push: + branches: + - main + +jobs: + docker: + name: Deploy with docker + runs-on: [self-hosted, Linux, X64] + steps: + - + name: Checkout + uses: actions/checkout@v4 + - + name: Start docker + run: docker compose -f compose.yml -f compose.prod.yml up --build -d + \ No newline at end of file diff --git a/.github/workflows/lint-action.yml b/.github/workflows/lint-action.yml index e0f24ba9..32823417 100644 --- a/.github/workflows/lint-action.yml +++ b/.github/workflows/lint-action.yml @@ -11,6 +11,8 @@ on: pull_request: branches: - dev + types: ["synchronize", "ready_for_review", "opened", "reopened"] + # Down scope as necessary via https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token permissions: @@ -20,6 +22,7 @@ permissions: jobs: run-linters: name: Run linters + if: '! github.event.pull_request.draft' runs-on: [self-hosted, Linux, X64] steps: @@ -42,4 +45,4 @@ jobs: eslint: true eslint_args: '--config eslint.config.ts' prettier: true - commit_message: 'style: fix linting issues met ${linter}' + commit_message: 'style: fix linting issues met ${linter}' \ No newline at end of file