From b50f343440febca1d040b2463b68011aa8404526 Mon Sep 17 00:00:00 2001 From: Hemna Date: Fri, 4 Nov 2022 09:04:14 -0400 Subject: [PATCH] Added container build action --- .github/workflows/python.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 3cdd76a..22600f8 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -1,4 +1,4 @@ -name: python +name: Test and Build on: [push, pull_request] @@ -20,3 +20,12 @@ jobs: pip install tox tox-gh-actions - name: Test with tox run: tox + + build: + needs: tox + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Build the Docker image + working-directory: ./docker + run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)