Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 494b6d6b authored by Simon Delamare's avatar Simon Delamare
Browse files

Update ci to also build bullseye package

parent dc561353
No related branches found
No related tags found
No related merge requests found
Pipeline #461318 passed
---
# 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment