2021-01-18 20:12:23 +01:00
|
|
|
image: docker
|
|
|
|
services:
|
|
|
|
- docker:dind
|
|
|
|
|
2021-01-20 10:42:52 +01:00
|
|
|
variables:
|
|
|
|
GITLAB_SHARED_DIND_DIR: /builds/$CI_PROJECT_PATH/shared
|
2021-03-30 21:32:18 +02:00
|
|
|
GIT_SUBMODULE_STRATEGY: normal
|
2021-03-18 11:19:28 +01:00
|
|
|
GIT_FETCH_EXTRA_FLAGS: --tags
|
2021-01-20 10:42:52 +01:00
|
|
|
|
2021-01-18 20:12:23 +01:00
|
|
|
stages:
|
|
|
|
- build
|
2021-03-18 11:19:28 +01:00
|
|
|
- upload
|
2021-01-20 10:42:52 +01:00
|
|
|
|
2021-03-18 10:56:03 +01:00
|
|
|
.prepare_build: &prepare_build
|
|
|
|
- ls -l
|
|
|
|
- pwd
|
|
|
|
- apk add bash
|
|
|
|
- mkdir -p "$GITLAB_SHARED_DIND_DIR" && chmod 777 "$GITLAB_SHARED_DIND_DIR"
|
|
|
|
|
2021-03-18 11:17:52 +01:00
|
|
|
.prepare_artfacts: &prepare_artfacts
|
|
|
|
- mkdir output
|
|
|
|
- cp -r builder/build/* output/
|
|
|
|
- rm output/*.tar.gz
|
|
|
|
|
2021-03-18 11:19:28 +01:00
|
|
|
build_ubuntu_bionic:
|
2021-01-18 20:12:23 +01:00
|
|
|
stage: build
|
2021-03-18 10:56:03 +01:00
|
|
|
before_script:
|
|
|
|
- *prepare_build
|
2021-03-18 11:17:52 +01:00
|
|
|
after_script:
|
|
|
|
- *prepare_artfacts
|
2021-01-18 20:12:23 +01:00
|
|
|
script:
|
2021-03-18 11:19:28 +01:00
|
|
|
- bash builder/build-package ubuntu bionic
|
2021-01-18 20:12:23 +01:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- output/
|
2021-03-18 11:19:28 +01:00
|
|
|
|
2021-09-07 14:11:21 +02:00
|
|
|
build_ubuntu_bionic_libjpeg_turbo:
|
|
|
|
stage: build
|
|
|
|
before_script:
|
|
|
|
- *prepare_build
|
|
|
|
after_script:
|
|
|
|
- *prepare_artfacts
|
|
|
|
script:
|
|
|
|
- bash builder/build-package ubuntu bionic +libjpeg-turbo_latest
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- output/
|
|
|
|
|
2021-03-18 11:19:28 +01:00
|
|
|
build_ubuntu_focal:
|
|
|
|
stage: build
|
|
|
|
before_script:
|
|
|
|
- *prepare_build
|
|
|
|
after_script:
|
|
|
|
- *prepare_artfacts
|
|
|
|
script:
|
|
|
|
- bash builder/build-package ubuntu focal;
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- output/
|
|
|
|
|
|
|
|
build_debian_buster:
|
|
|
|
stage: build
|
|
|
|
before_script:
|
|
|
|
- *prepare_build
|
|
|
|
after_script:
|
|
|
|
- *prepare_artfacts
|
|
|
|
script:
|
|
|
|
- bash builder/build-package debian buster;
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- output/
|
|
|
|
|
|
|
|
build_debian_bullseye:
|
|
|
|
stage: build
|
|
|
|
before_script:
|
|
|
|
- *prepare_build
|
|
|
|
after_script:
|
|
|
|
- *prepare_artfacts
|
|
|
|
script:
|
|
|
|
- bash builder/build-package debian bullseye;
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- output/
|
|
|
|
|
|
|
|
build_kali_rolling:
|
2021-01-18 20:12:23 +01:00
|
|
|
stage: build
|
2021-03-18 11:19:28 +01:00
|
|
|
before_script:
|
|
|
|
- *prepare_build
|
|
|
|
after_script:
|
|
|
|
- *prepare_artfacts
|
2021-01-18 20:12:23 +01:00
|
|
|
script:
|
2021-03-18 11:19:28 +01:00
|
|
|
- bash builder/build-package kali kali-rolling;
|
2021-01-18 20:12:23 +01:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- output/
|
2021-03-18 11:19:28 +01:00
|
|
|
|
|
|
|
build_centos7:
|
|
|
|
stage: build
|
|
|
|
before_script:
|
|
|
|
- *prepare_build
|
|
|
|
after_script:
|
|
|
|
- *prepare_artfacts
|
|
|
|
script:
|
|
|
|
- bash builder/build-package centos core
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- output/
|
|
|
|
|
|
|
|
upload:
|
|
|
|
stage: upload
|
|
|
|
image: ubuntu:focal
|
|
|
|
before_script:
|
|
|
|
- . .ci/upload.sh
|
|
|
|
script:
|
|
|
|
- export S3_BUILD_DIRECTORY="kasmvnc/${CI_COMMIT_SHA}"
|
|
|
|
- prepare_to_run_scripts_and_s3_uploads
|
|
|
|
- export RELEASE_VERSION=$(.ci/next_release_version "$CI_COMMIT_REF_NAME")
|
2021-09-07 14:11:21 +02:00
|
|
|
- for package in `find output/ -type f -name '*.deb' -or -name '*.rpm'`; do
|
2021-03-18 11:19:28 +01:00
|
|
|
prepare_upload_filename "$package";
|
|
|
|
echo;
|
|
|
|
echo "File to upload $upload_filename";
|
|
|
|
upload_to_s3 "$package" "$upload_filename";
|
|
|
|
done
|