Added container build action

This commit is contained in:
Hemna 2022-11-04 09:04:14 -04:00
parent 4c7c90b947
commit b50f343440
1 changed files with 10 additions and 1 deletions

View File

@ -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)