Update roles/build_fastapi/tasks/main.yml
This commit is contained in:
@@ -20,3 +20,11 @@
|
|||||||
command:
|
command:
|
||||||
cmd: source "{{ build_root_abspath }}/venv/bin/activate"
|
cmd: source "{{ build_root_abspath }}/venv/bin/activate"
|
||||||
cmd: pip install "fastapi[all]"
|
cmd: pip install "fastapi[all]"
|
||||||
|
- name: Build image and with build args
|
||||||
|
community.docker.docker_image:
|
||||||
|
name: helloworld-fastapi
|
||||||
|
source: build
|
||||||
|
build:
|
||||||
|
path: "{{ build_root_abspath }}"
|
||||||
|
pull: false
|
||||||
|
tag: "{{ demobackend_version }}"
|
||||||
Reference in New Issue
Block a user