feat: add docker image build CI

This commit is contained in:
swve 2024-04-21 12:41:43 +02:00
parent d1fde17220
commit 069ba56ed3
2 changed files with 13 additions and 28 deletions

View file

@ -1,28 +0,0 @@
{
"name": "learnhouse-backend",
"dockerComposeFile": ["../docker-compose.yml"],
"service": "api",
"workspaceFolder": "/usr/learnhouse",
"customizations": {
"vscode": {
"extensions": [
"eamodio.gitlens",
"ms-python.python",
"ms-python.black-formatter",
"ms-python.vscode-pylance",
"styled-components.vscode-styled-components",
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"ms-python.isort",
"redhat.vscode-yaml",
"bradlc.vscode-tailwindcss"
],
"settings": {
"[python]": {
"editor.defaultFormatter": "ms-python.python"
}
}
}
},
"shutdownAction": "stopCompose"
}

13
.github/workflows/docker-build.yaml vendored Normal file
View file

@ -0,0 +1,13 @@
name: App Build
on:
push:
paths:
- "**"
jobs:
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Docker Image
run: docker build -t learnhouse .
working-directory: .