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

CI: implement build of container to staging

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