Commit d0a82928 authored by David Mendez's avatar David Mendez

Add build step to build tasks daemon image

parent 9e680b64
Pipeline #93245 failed with stages
in 1 minute and 35 seconds
......@@ -3,7 +3,9 @@ variables:
GIT_STRATEGY: clone
REGISTRY_USER: chembl/chembl
SERVER_APPLICATION: main-web-interface/es-subset-generator
TASKS_APPLICATION: main-web-interface/es-subset-generator-tasks-daemon
SERVER_IMAGE_TAG: ${CI_REGISTRY}/${REGISTRY_USER}/${SERVER_APPLICATION}:${CI_COMMIT_SHORT_SHA}
TASKS_DAEMON_IMAGE_TAG: ${CI_REGISTRY}/${REGISTRY_USER}/${TASKS_APPLICATION}:${CI_COMMIT_SHORT_SHA}
DOCKER_DRIVER: overlay
CONFIGS_FOLDER: run_config
# Config unit tests
......@@ -47,7 +49,7 @@ stages:
# ----------------------------------------------------------------------------------------------------------------------
# build
# ----------------------------------------------------------------------------------------------------------------------
build_docker_image:
build_docker_image_api_server:
image:
name: docker/compose:1.24.1
entrypoint: ["/bin/sh", "-c"]
......@@ -60,11 +62,27 @@ build_docker_image:
- set -x
- docker version # verify docker cli is there. Also prints server info
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
- echo building $SERVER_IMAGE_TAG
- echo building ${SERVER_IMAGE_TAG}
- docker-compose build es-subset-generator-prod
- echo Deploying $SERVER_IMAGE_TAG
- docker push $SERVER_IMAGE_TAG
build_docker_image_tasks_daemon:
image:
name: docker/compose:1.24.1
entrypoint: ["/bin/sh", "-c"]
except:
- schedules
stage: build
variables:
DOCKER_HOST: tcp://docker:2375
script:
- set -x
- docker version # verify docker cli is there. Also prints server info
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
- echo building ${TASKS_DAEMON_IMAGE_TAG}
- docker-compose build task-status-daemon-prod
- docker push ${SERVER_IMAGE_TAG}
## ----------------------------------------------------------------------------------------------------------------------
## QA
## ----------------------------------------------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment