Update pre.yml

This commit is contained in:
qiaofeng1227 2022-07-26 10:02:03 +08:00 committed by GitHub
parent 8b996eabb3
commit 2f7dd8074e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,9 +18,9 @@
- debug: - debug:
msg: "baota_version is {{baota_version}}" msg: "baota_version is {{baota_version}}"
- name: Config .env and docker-compose for start containers - name: Config .env and docker-compose for start containers
shell: | shell: |
sed -i 's/APP_REPO=.*/APP_REPO={{baota_version}}/g' {{installpath}}/{{appname}}/.env 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.{{baota_version.split("/")[0] }}.profiles)' docker-compose.yml > tmp.yml
cat tmp.yml > docker-compose.yml cat tmp.yml > docker-compose.yml
rm -f tmp.yml rm -f tmp.yml