Merge Automatische deployment pull request #137 from SELab-2/github-actions/deployment
ci: Automatische deployment
This commit is contained in:
commit
06b5a93cef
2 changed files with 23 additions and 1 deletions
19
.github/workflows/deployment.yml
vendored
Normal file
19
.github/workflows/deployment.yml
vendored
Normal file
|
@ -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
|
||||||
|
|
3
.github/workflows/lint-action.yml
vendored
3
.github/workflows/lint-action.yml
vendored
|
@ -11,6 +11,8 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- 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
|
# Down scope as necessary via https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
|
||||||
permissions:
|
permissions:
|
||||||
|
@ -20,6 +22,7 @@ permissions:
|
||||||
jobs:
|
jobs:
|
||||||
run-linters:
|
run-linters:
|
||||||
name: Run linters
|
name: Run linters
|
||||||
|
if: '! github.event.pull_request.draft'
|
||||||
runs-on: [self-hosted, Linux, X64]
|
runs-on: [self-hosted, Linux, X64]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue