mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-14 02:55:41 +00:00
Add new docker workflow for publising docker images on release
This commit is contained in:
18
.github/workflows/docker_build.yaml
vendored
Normal file
18
.github/workflows/docker_build.yaml
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
# Test that the docker file builds correctly
|
||||
|
||||
name: Docker
|
||||
|
||||
on: ["push", "pull_request"]
|
||||
|
||||
jobs:
|
||||
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build Server Image
|
||||
run: cd docker/inventree && docker build . --tag inventree:$(date +%s)
|
||||
- name: Build nginx Image
|
||||
run: cd docker/nginx && docker build . --tag nxinx:$(date +%s)
|
||||
|
Reference in New Issue
Block a user