Update CI/CD

This commit is contained in:
LeoR156
2026-09-12 18:09:16 +05:00
parent e4806e1e07
commit f86e269d24
2 changed files with 50 additions and 25 deletions
+4 -3
View File
@@ -3,8 +3,9 @@
hosts: all
vars:
image_name: "leor156/quote-bot:latest"
container_name: "quote-bot"
image_name: "leor156/quote-bot:{{ image_tag | default('latest') }}"
container_name: "{{ container_name | default('quote-bot') }}"
container_state: "{{ container_state | default('started') }}"
tasks:
- name: Убеждаемся, что установлена библиотека Docker для Python
@@ -22,7 +23,7 @@
community.docker.docker_container:
name: "{{ container_name }}"
image: "{{ image_name }}"
state: started
state: "{{ container_state }}"
restart_policy: unless-stopped
pull: always
env: