Commit f6a7a425 authored by David Mendez's avatar David Mendez
Browse files

CI: implement build of container to staging

parent 7f18d1a1
variables:
DOCKER_TLS_CERTDIR: ""
GIT_STRATEGY: clone
REGISTRY_USER: chembl/unichem
APPLICATION: malaria-frontend
REGISTRY_USER: chembl/research
APPLICATION: lina-web
RELEASE_IMAGE: $CI_REGISTRY/$REGISTRY_USER/$APPLICATION:$CI_BUILD_REF_NAME
DOCKER_IMAGE: $CI_REGISTRY/$REGISTRY_USER/$APPLICATION
DOCKER_DRIVER: overlay
......@@ -18,24 +18,20 @@ stages:
# - deploy
build-dev:
image:
name: docker/compose:1.25.5
entrypoint: ["/bin/sh", "-c"]
stage: build
only:
- stagings
variables:
DOCKER_HOST: tcp://docker:2375
script:
- echo 'hello!'
# build-dev:
# image:
# name: docker/compose:1.25.5
# entrypoint: ["/bin/sh", "-c"]
# stage: build
# only:
# - dev
# # - master
# variables:
# DOCKER_HOST: tcp://docker:2375
# script:
# - echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
# - echo Building ${DOCKER_IMAGE}:${CI_COMMIT_SHORT_SHA}
# - docker-compose build development
# - echo Deploying ${DOCKER_IMAGE}:${CI_COMMIT_SHORT_SHA}
# - docker push ${DOCKER_IMAGE}:${CI_COMMIT_SHORT_SHA}
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
- echo Building ${DOCKER_IMAGE}:${CI_COMMIT_SHORT_SHA}
- docker-compose build development
- echo Deploying ${DOCKER_IMAGE}:${CI_COMMIT_SHORT_SHA}
- docker push ${DOCKER_IMAGE}:${CI_COMMIT_SHORT_SHA}
# build-prod:
# image:
......
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