Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ChEMBL
research
Lina Web
Commits
f6a7a425
Commit
f6a7a425
authored
Feb 18, 2021
by
David Mendez
Browse files
CI: implement build of container to staging
parent
7f18d1a1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
19 deletions
+15
-19
.gitlab-ci.yml
.gitlab-ci.yml
+15
-19
No files found.
.gitlab-ci.yml
View file @
f6a7a425
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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment