Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker-django
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
Service Desk
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
Evili del Rio i Silvan
docker-django
Commits
467fb6cf
Commit
467fb6cf
authored
6 years ago
by
Evili del Rio i Silvan
Browse files
Options
Downloads
Patches
Plain Diff
Use default docker
parent
0a4dd665
No related branches found
No related tags found
No related merge requests found
Pipeline
#2144
failed
6 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+7
-13
7 additions, 13 deletions
.gitlab-ci.yml
with
7 additions
and
13 deletions
.gitlab-ci.yml
+
7
−
13
View file @
467fb6cf
image
:
docker:stable
variables
:
# When using dind service we need to instruct docker, to talk with the
# daemon started inside of the service. The daemon is available with
# a network connection instead of the default /var/run/docker.sock socket.
#
# The 'docker' hostname is the alias of the service container as described at
# https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#accessing-the-services
#
# Note that if you're using Kubernetes executor, the variable should be set to
# tcp://localhost:2375 because of how Kubernetes executor connects services
# to the job container
DOCKER_HOST
:
tcp://docker:2375/
# When using dind, it's wise to use the overlayfs driver for
# improved performance.
DOCKER_DRIVER
:
overlay2
...
...
@@ -26,3 +13,10 @@ build:
stage
:
build
script
:
-
docker build -t django .
deploy
:
stage
:
deploy
script
:
-
docker login --user ${DOCKER_USER} --password ${DOCKER_PASSWORD}
-
docker tag django ${DOCKER_USER}/django
-
docker push ${DOCKER_USER}/django
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