From a3c00c39c98a594e310d220addbbe205af288d1f Mon Sep 17 00:00:00 2001 From: Matte <51192395+MatteZ02@users.noreply.github.com> Date: Thu, 18 Apr 2024 21:31:04 +0300 Subject: [PATCH] Update deployer.yml --- tasks/deployer.yml | 80 +++++++++++++++++++++++----------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/tasks/deployer.yml b/tasks/deployer.yml index c186dc5..531d1bb 100644 --- a/tasks/deployer.yml +++ b/tasks/deployer.yml @@ -147,48 +147,48 @@ tags: - nginx -- name: "Deployer - Frontend - Git Operations" - git: - repo: https://github.com/MetroHege/MPP-Frontend.git - dest: /root/frontend - version: main - register: deployerTask531 +# - name: "Deployer - Frontend - Git Operations" +# git: +# repo: https://github.com/MetroHege/MPP-Frontend.git +# dest: /root/frontend +# version: main +# register: deployerTask531 -- name: "Deployer - Frontend - Build Image" - containers.podman.podman_image: - name: mpp/frontend - tag: latest - path: /root/frontend - build: - file: Dockerfile - format: docker - cache: on - force: on - become: on - become_user: root - register: deployerTask532 - when: - - (deployerTask531 is defined and deployerTask531.changed) or deployerTask531 is undefined - tags: - - frontend +# - name: "Deployer - Frontend - Build Image" +# containers.podman.podman_image: +# name: mpp/frontend +# tag: latest +# path: /root/frontend +# build: +# file: Dockerfile +# format: docker +# cache: on +# force: on +# become: on +# become_user: root +# register: deployerTask532 +# when: +# - (deployerTask531 is defined and deployerTask531.changed) or deployerTask531 is undefined +# tags: +# - frontend -- name: "Deployer - Frontend - Run Container" - containers.podman.podman_container: - name: frontend - image: mpp/frontend:latest - state: started - recreate: on - network: host - volumes: - - "/root/frontend/dist/:/usr/src/app/dist/" - - "/root/frontend/.env:/usr/src/app/.env" - restart_policy: always - command: "npm run build" - when: - - deployerTask532 is defined - - deployerTask532.changed - tags: - - frontend +# - name: "Deployer - Frontend - Run Container" +# containers.podman.podman_container: +# name: frontend +# image: mpp/frontend:latest +# state: started +# recreate: on +# network: host +# volumes: +# - "/root/frontend/dist/:/usr/src/app/dist/" +# - "/root/frontend/.env:/usr/src/app/.env" +# restart_policy: always +# command: "npm run build" +# when: +# - deployerTask532 is defined +# - deployerTask532.changed +# tags: +# - frontend - name: "Deployer - Backend - Git Operations" git: