From 981975b1c768988690f327c720930be1774b4fb8 Mon Sep 17 00:00:00 2001 From: David Mendez <dmendez@ebi.ac.uk> Date: Thu, 4 Nov 2021 14:15:25 +0000 Subject: [PATCH] Debug Build --- .gitlab-ci.yml | 64 +++++++++++++++++++++++++------------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 88f76a0..e6f58b9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -61,38 +61,38 @@ prepare_config_hx_hh: - ${ENV_PROD_HX_FILE_PATH} - ${ENV_PROD_HH_FILE_PATH} -# ---------------------------------------------------------------------------------------------------------------------- -# build -# ---------------------------------------------------------------------------------------------------------------------- -build_staging: - image: - name: docker:latest - entrypoint: ["/bin/sh", "-c"] - stage: build - variables: - DOCKER_HOST: tcp://docker:2375 - services: - - docker:dind - only: - - staging - before_script: - - mkdir -p $HOME/.docker - - echo $DOCKER_AUTH_CONFIG > $HOME/.docker/config.json - script: - - set -x - - echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY - - docker info - - docker version # verify docker cli is there. Also prints server info - - export SERVER_IMAGE_TAG=${SERVER_IMAGE_TAG_STAGING} - - echo ${SERVER_IMAGE_TAG} - - export SERVER_IMAGE_TAG_LATEST=${SERVER_IMAGE_TAG_LATEST_STAGING} - - echo ${SERVER_IMAGE_TAG_LATEST} - - export BUILD_ENV_FILE_PATH=${ENV_STAGING_FILE_PATH} - - echo ${BUILD_ENV_FILE_PATH} - - docker pull ${SERVER_IMAGE_TAG_LATEST} || true - - docker build --cache-from ${SERVER_IMAGE_TAG_LATEST} --tag ${SERVER_IMAGE_TAG} --tag ${SERVER_IMAGE_TAG_LATEST} --build-arg BUILD_ENV_FILE_PATH=${ENV_STAGING_FILE_PATH} . - - docker push ${SERVER_IMAGE_TAG} - - docker push ${SERVER_IMAGE_TAG_LATEST} +# # ---------------------------------------------------------------------------------------------------------------------- +# # build +# # ---------------------------------------------------------------------------------------------------------------------- +# build_staging: +# image: +# name: docker:latest +# entrypoint: ["/bin/sh", "-c"] +# stage: build +# variables: +# DOCKER_HOST: tcp://docker:2375 +# services: +# - docker:dind +# only: +# - staging +# before_script: +# - mkdir -p $HOME/.docker +# - echo $DOCKER_AUTH_CONFIG > $HOME/.docker/config.json +# script: +# - set -x +# - echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY +# - docker info +# - docker version # verify docker cli is there. Also prints server info +# - export SERVER_IMAGE_TAG=${SERVER_IMAGE_TAG_STAGING} +# - echo ${SERVER_IMAGE_TAG} +# - export SERVER_IMAGE_TAG_LATEST=${SERVER_IMAGE_TAG_LATEST_STAGING} +# - echo ${SERVER_IMAGE_TAG_LATEST} +# - export BUILD_ENV_FILE_PATH=${ENV_STAGING_FILE_PATH} +# - echo ${BUILD_ENV_FILE_PATH} +# - docker pull ${SERVER_IMAGE_TAG_LATEST} || true +# - docker build --cache-from ${SERVER_IMAGE_TAG_LATEST} --tag ${SERVER_IMAGE_TAG} --tag ${SERVER_IMAGE_TAG_LATEST} --build-arg BUILD_ENV_FILE_PATH=${ENV_STAGING_FILE_PATH} . +# - docker push ${SERVER_IMAGE_TAG} +# - docker push ${SERVER_IMAGE_TAG_LATEST} # ---------------------------------------------------------------------------------------------------------------------- # test -- GitLab