From 069ba56ed3cc2ba8c76b84457492c4a78f1e9f14 Mon Sep 17 00:00:00 2001 From: swve Date: Sun, 21 Apr 2024 12:41:43 +0200 Subject: [PATCH] feat: add docker image build CI --- .devcontainer/devcontainer.json | 28 ---------------------------- .github/workflows/docker-build.yaml | 13 +++++++++++++ 2 files changed, 13 insertions(+), 28 deletions(-) delete mode 100644 .devcontainer/devcontainer.json create mode 100644 .github/workflows/docker-build.yaml diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json deleted file mode 100644 index 06fb9a11..00000000 --- a/.devcontainer/devcontainer.json +++ /dev/null @@ -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" -} \ No newline at end of file diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml new file mode 100644 index 00000000..395cbd7f --- /dev/null +++ b/.github/workflows/docker-build.yaml @@ -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: .