Skip to content

Commit

Permalink
Addd docker build workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
n1nj4t4nuk1 committed Dec 24, 2021
1 parent 35afa34 commit fac4e6e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: docker-build

on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest

steps:
- name: Clone and checkout branch
uses: actions/checkout@v2

- name: Build docker image
run: docker build -t test-tag .
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
on: [push, pull_request]
name: tests

on: [push, pull_request]

jobs:
tests:
runs-on: ubuntu-latest
Expand Down
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@

FROM python:3.9

WORKDIR /code

COPY ./ /code
RUN pip install --no-cache-dir --upgrade -r requirements.txt

COPY . .

CMD ["make", "run"]
RUN make deps

0 comments on commit fac4e6e

Please sign in to comment.