Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
openlaw-bot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Resource-IL
openlaw-bot
Commits
15e0777d
Verified
Commit
15e0777d
authored
Nov 18, 2020
by
uda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
All I needed was to activate the registry
parent
6a06557b
Pipeline
#87
canceled with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
.gitlab-ci.yml
.gitlab-ci.yml
+7
-9
No files found.
.gitlab-ci.yml
View file @
15e0777d
...
...
@@ -6,6 +6,7 @@ default:
before_script
:
-
docker info
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
variables
:
DOCKER_HOST
:
tcp://localhost:2375
...
...
@@ -14,9 +15,8 @@ variables:
build_docker
:
stage
:
build
script
:
-
docker build -t ${CI_REGISTRY}/${CI_PROJECT_PATH}:lates .
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker push ${CI_REGISTRY}/${CI_PROJECT_PATH}:latest
-
docker build -t ${CI_REGISTRY_IMAGE}:lates .
-
docker push ${CI_REGISTRY_IMAGE}:latest
only
:
-
tags
-
/v\d+\.\d+\.\d+/
...
...
@@ -26,9 +26,8 @@ build_docker:
build_master_docker
:
stage
:
build
script
:
-
docker build -t ${CI_REGISTRY}/${CI_PROJECT_PATH}:master .
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker push ${CI_REGISTRY}/${CI_PROJECT_PATH}:master
-
docker build -t ${CI_REGISTRY_IMAGE}:master .
-
docker push ${CI_REGISTRY_IMAGE}:master
only
:
-
master
-
triggers
...
...
@@ -36,9 +35,8 @@ build_master_docker:
build_tagged_docker
:
stage
:
build
script
:
-
docker build -t ${CI_REGISTRY}/${CI_PROJECT_PATH}:${CI_COMMIT_TAG} .
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker push ${CI_REGISTRY}/${CI_PROJECT_PATH}:${CI_COMMIT_TAG}
-
docker build -t ${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG} .
-
docker push ${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}
only
:
-
tags
-
triggers
...
...
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