Update deployer.yml

This commit is contained in:
Matte 2024-04-18 22:00:53 +03:00
parent 497306776a
commit da649cb027

View File

@ -154,48 +154,48 @@
version: main version: main
register: deployerTask531 register: deployerTask531
- name: "Deployer - Frontend - Build Image" # - name: "Deployer - Frontend - Build Image"
containers.podman.podman_image: # containers.podman.podman_image:
name: mpp/frontend # name: mpp/frontend
tag: latest # tag: latest
path: /root/frontend # path: /root/frontend
build: # build:
file: Dockerfile # file: Dockerfile
format: docker # format: docker
cache: on # cache: on
force: on # force: on
become: on # become: on
become_user: root # become_user: root
register: deployerTask532 # register: deployerTask532
when: # when:
- (deployerTask531 is defined and deployerTask531.changed) or deployerTask531 is undefined # - (deployerTask531 is defined and deployerTask531.changed) or deployerTask531 is undefined
tags: # tags:
- frontend # - frontend
- name: "Deployer - Frontend - Run Container" # - name: "Deployer - Frontend - Run Container"
containers.podman.podman_container: # containers.podman.podman_container:
name: frontend # name: frontend
image: mpp/frontend:latest # image: mpp/frontend:latest
state: started # state: started
recreate: on # recreate: on
network: host # network: host
volumes: # volumes:
- "/root/frontend/dist/:/usr/src/app/dist/" # - "/root/frontend/dist/:/usr/src/app/dist/"
- "/root/frontend/.env:/usr/src/app/.env" # - "/root/frontend/.env:/usr/src/app/.env"
restart_policy: always # restart_policy: always
command: "npm run build" # command: "npm run build"
when: # when:
- deployerTask532 is defined # - deployerTask532 is defined
- deployerTask532.changed # - deployerTask532.changed
tags: # tags:
- frontend # - frontend
- name: "Deployer - Backend - Git Operations" # - name: "Deployer - Backend - Git Operations"
git: # git:
repo: https://github.com/MetroHege/MPP-Backend.git # repo: https://github.com/MetroHege/MPP-Backend.git
dest: /root/backend # dest: /root/backend
version: main # version: main
register: deployerTask521 # register: deployerTask521
- name: "Deployer - Backend - Build Image" - name: "Deployer - Backend - Build Image"
containers.podman.podman_image: containers.podman.podman_image: