From 07d9ca139c6a58ec35af43f2d6f550ead25b4484 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Tue, 26 Jul 2022 10:48:35 +0800 Subject: [PATCH] Update pre.yml --- apps/roles/bt/tasks/pre.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/roles/bt/tasks/pre.yml b/apps/roles/bt/tasks/pre.yml index 2826b05d..9243a0f3 100644 --- a/apps/roles/bt/tasks/pre.yml +++ b/apps/roles/bt/tasks/pre.yml @@ -21,6 +21,15 @@ - name: Config .env and docker-compose for start containers shell: | sed -i 's/APP_REPO=.*/APP_REPO={{baota_version}}/g' {{installpath}}/{{appname}}/.env - yq eval 'del(.services.{{baota_version.split("/")[0] }}.profiles)' docker-compose.yml > tmp.yml + yq eval 'del(.services.aapanel.profiles)' docker-compose.yml > tmp.yml cat tmp.yml > docker-compose.yml - rm -f tmp.yml + rm -f tmp.yml + when: baota_version == "aapanel/aapanel" + +- name: Config .env and docker-compose for start containers + shell: | + sed -i 's/APP_REPO=.*/APP_REPO={{baota_version}}/g' {{installpath}}/{{appname}}/.env + yq eval 'del(.services.aapanel.profiles)' docker-compose.yml > tmp.yml + cat tmp.yml > docker-compose.yml + rm -f tmp.yml + when: baota_version == "btpanel/baota"