Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kwollect
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
grid5000
kwollect
Commits
494b6d6b
Commit
494b6d6b
authored
3 years ago
by
Simon Delamare
Browse files
Options
Downloads
Patches
Plain Diff
Update ci to also build bullseye package
parent
dc561353
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#461318
passed
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+34
-15
34 additions, 15 deletions
.gitlab-ci.yml
with
34 additions
and
15 deletions
.gitlab-ci.yml
+
34
−
15
View file @
494b6d6b
---
# This is important to avoid stale artifacts in the build directory
# This is important to avoid stale artifacts in the build directory
variables
:
variables
:
GIT_STRATEGY
:
clone
GIT_STRATEGY
:
clone
# Another stage is needed for the deployment (so that files are already generated by the previous job)
# Another stage is needed for the deployment (so that files are already generated by the previous job)
stages
:
stages
:
-
test
-
build
-
deploy
-
deploy
test-and-build
:
.build
:
&build
stage
:
build
tags
:
tags
:
-
grid5000-docker
-
grid5000-docker
image
:
debian:buster
script
:
script
:
-
apt-get update && apt-get -y --no-install-recommends install devscripts build-essential equivs git
-
apt-get update && apt-get -y --no-install-recommends install devscripts build-essential equivs git
-
mk-build-deps -ir -t 'apt-get -y --no-install-recommends'
-
mk-build-deps -ir -t 'apt-get -y --no-install-recommends'
-
pip3 install -U pip
# required by orjson dependency
-
pip3 install -U pip
# required by orjson dependency
-
dpkg-buildpackage --no-sign
-
dpkg-buildpackage --no-sign
-
cp ../*deb .
# needed to upload it as artifact
-
mkdir $TARGETDIR
-
cp ../*deb $TARGETDIR/
# needed to upload it as artifact
except
:
except
:
-
tags
-
tags
build-buster
:
&build-buster
<<
:
*build
variables
:
TARGETDIR
:
"
buster"
image
:
debian:buster
artifacts
:
# generate artifacts for files we want to publish
paths
:
-
buster
expire_in
:
'
1
day'
build-bullseye
:
&build-bullseye
<<
:
*build
variables
:
TARGETDIR
:
"
bullseye"
image
:
debian:bullseye
artifacts
:
# generate artifacts for files we want to publish
artifacts
:
# generate artifacts for files we want to publish
paths
:
paths
:
-
./*.deb
-
bullseye
expire_in
:
'
1
day'
expire_in
:
'
1
day'
push-package
:
push-package
:
stage
:
deploy
stage
:
deploy
...
@@ -33,4 +51,5 @@ push-package:
...
@@ -33,4 +51,5 @@ push-package:
-
master
-
master
when
:
manual
when
:
manual
script
:
script
:
-
g5k-deploy-files --only-if-tag --debian --directory deb/kwollect
-
g5k-deploy-files --only-if-tag --debian --files 'buster/*.deb' --directory deb/kwollect
-
g5k-deploy-files --only-if-tag --debian --files 'bullseye/*.deb' --directory deb/kwollect/bullseye
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