Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
corpus2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
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
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
corpus2
Commits
4158df9e
Commit
4158df9e
authored
Feb 19, 2021
by
Bartosz Ziemba
Browse files
Options
Downloads
Patches
Plain Diff
Changed CI to build deb
parent
46f35b63
No related branches found
No related tags found
1 merge request
!17
Develop
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+29
-7
29 additions, 7 deletions
.gitlab-ci.yml
Dockerfile
+0
-37
0 additions, 37 deletions
Dockerfile
uploaddeb.sh
+0
-9
0 additions, 9 deletions
uploaddeb.sh
with
29 additions
and
53 deletions
.gitlab-ci.yml
+
29
−
7
View file @
4158df9e
stages
:
-
check_style
-
build
-
deploy
build_
image
:
build_
deb
:
stage
:
build
image
:
docker:18.09.7
image
:
clarinpl/python:3.6
script
:
-
apt-get update && apt-get install -y \
libxml++2.6-dev \
libloki-dev \
libboost-all-dev \
libicu-dev \
libffi-dev \
libssl-dev \
libxml2-utils \
cmake \
swig \
pwrutils \
gdebi-core
-
mkdir src/build && cd src/build
-
cmake .. && cmake --build . && cpack
artifacts
:
paths
:
-
src/build/corpus2*.deb
expire_in
:
1h
push_deb
:
stage
:
deploy
image
:
clarinpl/cpp:16.04
only
:
-
master
services
:
-
docker:18.09.7-dind
script
:
-
APT_USERNAME=aptuser
-
docker build . -t corpus2 --build-arg APT_USERNAME --build-arg APT_PASSWORD
-
FILE=$(ls build/corpus2*.deb)
-
curl --fail -i -X POST -F "file=@./${FILE}" -u "${APT_USERNAME}:${APT_PASSWORD}" https://apt.clarin-pl.eu/
dependencies
:
This diff is collapsed.
Click to expand it.
Dockerfile
deleted
100644 → 0
+
0
−
37
View file @
46f35b63
FROM
clarinpl/python:3.6
ARG
APT_USERNAME
ARG
APT_PASSWORD
RUN
test
-n
"
$APT_USERNAME
"
RUN
test
-n
"
$APT_PASSWORD
"
RUN
apt-get update
&&
apt-get
install
-y
\
libxml++2.6-dev
\
libloki-dev
\
libboost-all-dev
\
libicu-dev
\
libffi-dev
\
libssl-dev
\
libxml2-utils
\
cmake
\
swig
\
pwrutils
\
gdebi-core
RUN
mkdir
-p
/home/install
WORKDIR
/home/install
COPY
./src ./corpus2
RUN
mkdir
corpus2/build
&&
\
cd
corpus2/build
&&
\
cmake ..
&&
\
cmake
--build
.
&&
\
cpack
RUN
apt-get
install
-y
curl
WORKDIR
/home/install/corpus2/build
COPY
./uploaddeb.sh ./
RUN
bash uploaddeb.sh
$APT_USERNAME
$APT_PASSWORD
https://apt.clarin-pl.eu
This diff is collapsed.
Click to expand it.
uploaddeb.sh
deleted
100644 → 0
+
0
−
9
View file @
46f35b63
#!/bin/bash
APT_USERNAME
=
$1
APT_PASSWORD
=
$2
APT_SERVER
=
$3
for
file
in
*
.deb
;
do
curl
--fail
-i
-X
POST
-F
"file=@./
${
file
}
"
-u
"
${
APT_USERNAME
}
:
${
APT_PASSWORD
}
"
$APT_SERVER
done
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