Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gdd-sigma-poc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guillaume WANG
gdd-sigma-poc
Commits
52bd2fe8
Commit
52bd2fe8
authored
6 years ago
by
Olivér FACKLAM
Browse files
Options
Downloads
Patches
Plain Diff
Remove Docker build from gitlab CI
parent
62764df7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+1
-28
1 addition, 28 deletions
.gitlab-ci.yml
with
1 addition
and
28 deletions
.gitlab-ci.yml
+
1
−
28
View file @
52bd2fe8
...
@@ -8,13 +8,6 @@ services:
...
@@ -8,13 +8,6 @@ services:
-
postgres
-
postgres
variables
:
variables
:
DOCKER_DRIVER
:
overlay2
CI_APPLICATION_REPOSITORY
:
${CI_REGISTRY_IMAGE}/${CI_COMMIT_REF_SLUG}
CI_APPLICATION_TAG
:
${CI_COMMIT_SHA}
CI_CONTAINER_NAME
:
ci_job_build_${CI_JOB_ID}
# Nécessaire pour accéder docker depuis le container du runner
# cf. https://gitlab.com/gitlab-org/gitlab-runner/blob/master/docs/executors/kubernetes.md
DOCKER_HOST
:
"
tcp://localhost:2375"
# This folder is cached between builds
# This folder is cached between builds
cache
:
cache
:
...
@@ -25,7 +18,6 @@ cache:
...
@@ -25,7 +18,6 @@ cache:
stages
:
stages
:
-
build
-
build
-
tests
-
tests
-
docker
### Jobs ###
### Jobs ###
...
@@ -46,23 +38,4 @@ tests:
...
@@ -46,23 +38,4 @@ tests:
script
:
script
:
-
echo '{"dn":"dn", "passwd":"passwd"}' >> ldap_credentials.json
-
echo '{"dn":"dn", "passwd":"passwd"}' >> ldap_credentials.json
-
npm i
-
npm i
-
npm run test
-
npm run test
\ No newline at end of file
docker:build
:
dependencies
:
-
build:transpile
stage
:
docker
image
:
docker:latest
services
:
-
docker:dind
script
:
-
echo $LDAP_CONN_CONFIG > ldap_credentials.json
-
docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
-
echo "Building Dockerfile..."
-
docker build --pull -t ${CI_APPLICATION_REPOSITORY}:${CI_APPLICATION_TAG} -t ${CI_APPLICATION_REPOSITORY}:latest --build-arg DB_PASSWD=${DB_PASSWD} .
-
echo "Pushing to GitLab Container registry $CI_APPLICATION_REPOSITORY with tags '${CI_APPLICATION_TAG}' and 'latest'"
-
docker push ${CI_APPLICATION_REPOSITORY}:${CI_APPLICATION_TAG}
-
docker push ${CI_APPLICATION_REPOSITORY}:latest
only
:
-
master
-
stable
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment