Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spejd
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nlpworkers
spejd
Commits
8c676a80
Commit
8c676a80
authored
4 years ago
by
Bartosz Ziemba
Browse files
Options
Downloads
Patches
Plain Diff
Updated CI for local registery
parent
c876a79d
Branches
master
No related merge requests found
Pipeline
#3123
failed with stage
in 1 minute and 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+11
-2
11 additions, 2 deletions
.gitlab-ci.yml
with
11 additions
and
2 deletions
.gitlab-ci.yml
+
11
−
2
View file @
8c676a80
...
...
@@ -8,9 +8,18 @@ build_image:
-
master
services
:
-
'
docker:18.09.7-dind'
variables
:
DOCKERHUB_NAME
:
clarinpl/spejd
before_script
:
-
'
'
script
:
-
docker build -t
clarinpl/spejd
.
-
docker build -t
$DOCKERHUB_NAME
.
-
echo $DOCKER_PASSWORD > pass.txt
-
cat pass.txt | docker login --username $DOCKER_USERNAME --password-stdin
-
rm pass.txt
-
docker push clarinpl/spejd
-
docker push $DOCKERHUB_NAME
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker image tag $DOCKERHUB_NAME $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
-
docker image tag $DOCKERHUB_NAME $CI_REGISTRY_IMAGE:latest
-
docker push $CI_REGISTRY_IMAGE
This diff is collapsed.
Click to expand it.
Preview
0%
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