Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
nlpworkers
converter
Commits
87d1f5fa
Commit
87d1f5fa
authored
Jul 21, 2021
by
Bartosz Ziemba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update .gitlab-ci.yml
parent
997df0cd
Pipeline
#3282
passed with stage
in 2 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
.gitlab-ci.yml
.gitlab-ci.yml
+10
-4
No files found.
.gitlab-ci.yml
View file @
87d1f5fa
...
...
@@ -12,16 +12,22 @@ before_script:
build_image
:
stage
:
build
image
:
docker:18.09.7
image
:
'
docker:18.09.7
'
only
:
-
master
services
:
-
docker:18.09.7-dind
-
'
docker:18.09.7-dind'
variables
:
DOCKERHUB_NAME
:
clarinpl/$CI_PROJECT_NAME
before_script
:
-
'
'
script
:
-
docker build -t
clarinpl/converter
.
-
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/converter
-
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
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