Update deployer.yml

This commit is contained in:
Matte 2024-04-18 21:56:38 +03:00
parent a3c00c39c9
commit 497306776a

View File

@ -147,48 +147,48 @@
tags: tags:
- nginx - nginx
# - name: "Deployer - Frontend - Git Operations" - name: "Deployer - Frontend - Git Operations"
# git: git:
# repo: https://github.com/MetroHege/MPP-Frontend.git repo: https://github.com/MetroHege/MPP-Frontend.git
# dest: /root/frontend dest: /root/frontend
# 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: