File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ fetch:
136136 - git fetch --all
137137 - git checkout ${NEW_HEAD}
138138 - sops -d ci.secrets.docker-compose.yml > secrets.docker-compose.yml
139+ - ./bin/generate_env
139140 needs: ["prebuild"]
140141
141142build:
@@ -144,15 +145,6 @@ build:
144145 # ak build then docker build
145146 - cd ~gitlab-runner/builds/${AK_WORKING_DIR}
146147
147- - cp .env-ci .env
148- # TODO use copier or something to inialize this env variables
149- - echo BUILD_NAME=${BUILD_NAME} >> .env
150- - echo CI_PROJECT_NAME=${CI_PROJECT_NAME} >> .env
151- - echo "DOMAIN=${DOMAIN}" >> .env
152- # uid , gid used by docker in postgres to fix perms on .db
153- - echo "UID=`id -u`" >> .env
154- - echo "GID=`id -g`" >> .env
155-
156148 # ak build
157149 - cd odoo && time ak clone && time ak sparse && time ak build && cd ..
158150
@@ -308,10 +300,6 @@ test:
308300 script:
309301 - CURRENT_PATH=`pwd`
310302 - cd ~gitlab-runner/builds/${AK_WORKING_DIR}
311- - cp .env .env-test
312- - echo "ENABLE_TRAEFIK=false" >> .env-test
313- - echo "COMPOSE_PROJECT_NAME=${BUILD_NAME}_test" >> .env-test
314- - echo "PGDATABASE=${BUILD_NAME}_test" >> .env-test
315303 - docker compose --env-file .env-test kill
316304 - dropdb --force --if-exists ${BUILD_NAME}_test
317305 - docker compose --env-file .env-test run --rm odoo initdb ${BUILD_NAME}_test --cache-prefix ${CI_PROJECT_NAME:0:7}
You can’t perform that action at this time.
0 commit comments