Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
morphodita
Manage
Activity
Members
Labels
Plan
Issues
0
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
morphodita
Commits
d813314e
Commit
d813314e
authored
1 month ago
by
Bartosz Walkowiak
Browse files
Options
Downloads
Patches
Plain Diff
Fix build
parent
4c5e7bdb
Branches
Branches containing commit
No related merge requests found
Pipeline
#21729
failed with stage
in 50 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+4
-14
4 additions, 14 deletions
.gitlab-ci.yml
Dockerfile
+2
-1
2 additions, 1 deletion
Dockerfile
with
6 additions
and
15 deletions
.gitlab-ci.yml
+
4
−
14
View file @
d813314e
stages
:
-
build_master
-
build_develop
build_develop
:
stage
:
build_develop
image
:
'
docker:18.09.7'
except
:
-
master
services
:
-
'
docker:18.09.7-dind'
script
:
-
docker build -t $CI_REGISTRY_IMAGE:develop .
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker push $CI_REGISTRY_IMAGE:develop
build_image
:
stage
:
build_master
...
...
@@ -23,8 +10,11 @@ build_image:
-
'
docker:23.0.3-dind'
variables
:
DOCKERHUB_NAME
:
clarinpl/$CI_PROJECT_NAME
before_script
:
-
export CI_JOB_TOKEN=$CI_JOB_TOKEN
-
until docker info; do sleep 1; done
script
:
-
docker build -t $DOCKERHUB_NAME .
-
docker build
--build-arg CI_JOB_TOKEN=$CI_JOB_TOKEN
-t $DOCKERHUB_NAME
-o type=docker
.
-
echo $DOCKER_PASSWORD > pass.txt
-
cat pass.txt | docker login --username $DOCKER_USERNAME --password-stdin
-
rm pass.txt
...
...
This diff is collapsed.
Click to expand it.
Dockerfile
+
2
−
1
View file @
d813314e
...
...
@@ -4,9 +4,10 @@ RUN apt update -y && apt install -y wsnlp-16-04 awscli
WORKDIR
/home/install
COPY
src/ src/
ARG
CI_JOB_TOKEN=""
RUN
cd
src
&&
\
git clone
https://gitlab.clarin-pl.eu/devops
/g419-morphodita.git
&&
\
git clone
gitlab-ci-token:
$CI_JOB_TOKEN
@http://nlp.pwr.wroc.pl
/g419-morphodita.git
&&
\
cd
g419-morphodita/src
&&
\
make
-j4
lib
&&
\
cd
../..
&&
\
...
...
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