Skip to content
Snippets Groups Projects
Commit 42dc18f6 authored by s80984's avatar s80984
Browse files

use docker compose in build job

parent 8b92c925
No related branches found
No related tags found
No related merge requests found
Pipeline #14102 failed
......@@ -25,7 +25,7 @@ job_build-image:
services:
- name: docker:20.10.12-dind
script:
- docker build
- docker-compose build
--file "server/Containerfile"
--tag "${CI_REGISTRY_IMAGE}:${CI_PIPELINE_IID}-${CI_COMMIT_SHORT_SHA}"
"./"
......@@ -55,7 +55,6 @@ job_test-image:
--publish "${outerPort}:8080"
--name "${CI_PROJECT_ID}-${CI_PIPELINE_IID}"
"${CI_REGISTRY_IMAGE}:${CI_PIPELINE_IID}-${CI_COMMIT_SHORT_SHA}"
npm run test
- |
attempts=1
while (wget "http://containerhost:${outerPort}" 2>&1 || true) | grep 'Connection refused' && [ "${attempts}" -lt 5 ]; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment