mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2024-11-25 01:24:04 +01:00
Fix build-tarball: use dir shared between GitLab runner and Docker
This commit is contained in:
parent
dd3364822d
commit
39e5cbc182
@ -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
|
||||
|
@ -7,6 +7,8 @@ build_www_dir() {
|
||||
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