feat(docker): adding docker image build support
This commit is contained in:
28
Taskfile.yml
Normal file
28
Taskfile.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
version: '3'
|
||||
|
||||
vars:
|
||||
API_IMAGE_NAME: realz
|
||||
API_IMAGE_VERSION: v1.0.0
|
||||
DB_IMAGE_NAME: realzdb
|
||||
DB_IMAGE_VERSION: v1.0.0
|
||||
|
||||
tasks:
|
||||
default:
|
||||
deps: [ build ]
|
||||
silent: true
|
||||
|
||||
build-api:
|
||||
desc: Construction de l'image Docker realz API
|
||||
cmds:
|
||||
- docker build -t {{.API_IMAGE_NAME}}:{{.API_IMAGE_VERSION}} -t {{.API_IMAGE_NAME}}:latest -f docker/Dockerfile.api .
|
||||
silent: true
|
||||
|
||||
build-db:
|
||||
desc: Construction de l'image Docker realz DB
|
||||
cmds:
|
||||
- docker build -t {{.DB_IMAGE_NAME}}:{{.DB_IMAGE_VERSION}} -t {{.DB_IMAGE_NAME}}:latest -f docker/Dockerfile.db .
|
||||
silent: true
|
||||
|
||||
build:
|
||||
desc: Construction des images Docker realz
|
||||
deps: [ build-api, build-db ]
|
Reference in New Issue
Block a user