mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-09 01:34:50 +01:00
Merge pull request #18 from kasmtech/gitlab-pipeline-produce-deb
Gitlab pipeline produce deb
This commit is contained in:
commit
57f4e0a856
@ -2,15 +2,19 @@ image: docker
|
||||
services:
|
||||
- docker:dind
|
||||
|
||||
variables:
|
||||
GITLAB_SHARED_DIND_DIR: /builds/$CI_PROJECT_PATH/shared
|
||||
|
||||
stages:
|
||||
- build
|
||||
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- ls -l
|
||||
- pwd
|
||||
- apk add bash
|
||||
- mkdir -p "$GITLAB_SHARED_DIND_DIR" && chmod 777 "$GITLAB_SHARED_DIND_DIR"
|
||||
- bash builder/build-tarball
|
||||
- bash builder/build-deb
|
||||
- mkdir output
|
||||
|
@ -6,4 +6,4 @@ cd "$(dirname "$0")/.."
|
||||
|
||||
dpkg-buildpackage -us -uc -b
|
||||
cp ../*.deb builder/build
|
||||
lintian ../*.deb
|
||||
lintian ../*.deb || true
|
||||
|
@ -4,9 +4,11 @@ set -e
|
||||
|
||||
build_www_dir() {
|
||||
docker build -t kasmweb/www -f builder/dockerfile.www.build .
|
||||
docker run -it --rm -v $PWD/builder/www:/build kasmweb/www:latest
|
||||
docker run --rm -v $PWD/builder/www:/build kasmweb/www:latest
|
||||
}
|
||||
|
||||
shared_with_docker_dir=${GITLAB_SHARED_DIND_DIR:-/tmp}
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
build_www_dir
|
||||
@ -14,9 +16,9 @@ build_www_dir
|
||||
docker pull ubuntu:18.04
|
||||
docker build -t kasmvncbuilder:18.04 -f builder/dockerfile.ubuntu1804.build .
|
||||
mkdir -p builder/build
|
||||
docker run -v /tmp:/build --rm kasmvncbuilder:18.04
|
||||
docker run -v $shared_with_docker_dir:/build --rm kasmvncbuilder:18.04
|
||||
|
||||
L_GID=$(id -g)
|
||||
L_UID=$(id -u)
|
||||
chown $L_UID:$L_GID /tmp/kasmvnc.ubuntu_18.04.tar.gz
|
||||
mv /tmp/kasmvnc.ubuntu_18.04.tar.gz $PWD/builder/build/
|
||||
chown $L_UID:$L_GID $shared_with_docker_dir/kasmvnc.ubuntu_18.04.tar.gz
|
||||
mv $shared_with_docker_dir/kasmvnc.ubuntu_18.04.tar.gz $PWD/builder/build/
|
||||
|
Loading…
Reference in New Issue
Block a user