mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-06-24 11:41:32 +02:00
CI: extract before_script
This commit is contained in:
parent
349ed4cb41
commit
9a9b14daf1
@ -8,14 +8,18 @@ variables:
|
|||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
|
.prepare_build: &prepare_build
|
||||||
|
- ls -l
|
||||||
|
- pwd
|
||||||
|
- apk add bash
|
||||||
|
- mkdir -p "$GITLAB_SHARED_DIND_DIR" && chmod 777 "$GITLAB_SHARED_DIND_DIR"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
|
before_script:
|
||||||
|
- *prepare_build
|
||||||
script:
|
script:
|
||||||
- ls -l
|
- echo "Always build Ubuntu 18"
|
||||||
- pwd
|
|
||||||
- apk add bash
|
|
||||||
- mkdir -p "$GITLAB_SHARED_DIND_DIR" && chmod 777 "$GITLAB_SHARED_DIND_DIR"
|
|
||||||
- echo "Build Ubuntu 18 on all branches"
|
|
||||||
- bash builder/build-distro ubuntu bionic
|
- bash builder/build-distro ubuntu bionic
|
||||||
- if echo "$CI_COMMIT_BRANCH" | grep -Eq '(release|testing)'; then
|
- if echo "$CI_COMMIT_BRANCH" | grep -Eq '(release|testing)'; then
|
||||||
echo "Build all distros";
|
echo "Build all distros";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user