Update roles/build_fastapi/tasks/main.yml

This commit is contained in:
2024-02-02 18:21:48 +08:00
parent 6a1b0ae155
commit 8fc5b7f621

View File

@@ -32,3 +32,11 @@
path: "{{ build_root_abspath }}" path: "{{ build_root_abspath }}"
pull: false pull: false
tag: "{{ demobackend_version }}" tag: "{{ demobackend_version }}"
- name: run docker
docker_container:
name: demobackend
state: started
recreate: yes
image: "helloworld-fastapi:{{ demobackend_version }}"
ports:
- "8080:8080"