55 lines
1.7 KiB
YAML
55 lines
1.7 KiB
YAML
stages:
|
|
- prebuild
|
|
- build
|
|
- postbuild
|
|
prebuild:
|
|
stage: prebuild
|
|
tags:
|
|
- Builder-1
|
|
script:
|
|
- docker build --no-cache -f Dockerfile-builder -t builder:latest .
|
|
tileos-sway-amd64:
|
|
when: manual
|
|
stage: build
|
|
variables:
|
|
DESKTOP: sway
|
|
tags:
|
|
- Builder-1
|
|
script:
|
|
- eval $(ssh-agent -s)
|
|
- mkdir ~/.ssh/
|
|
- echo "$BASE64_TILEOS_ISO_STORAGE_KEY" | base64 -d > ~/.ssh/id_rsa
|
|
- echo "$TILEOS_ISO_STORAGE_CONFIG" > ~/.ssh/config
|
|
- chmod 644 ~/.ssh/config
|
|
- chmod 400 ~/.ssh/id_rsa
|
|
- docker run --privileged --rm -i -v ${CI_PROJECT_DIR}/output:/builder/builds -v /proc:/proc -e DESKTOP=sway builder:latest ./build --desktop sway --release testing
|
|
- ssh -o StrictHostKeyChecking=no tileos@tileos rm -rf /media/iso/tile-os/ci/sway/*
|
|
- scp -o StrictHostKeyChecking=no -p -B ${CI_PROJECT_DIR}/output/amd64/* tileos@tileos:/media/iso/tile-os/ci/sway/
|
|
tileos-river-amd64:
|
|
when: manual
|
|
stage: build
|
|
variables:
|
|
DESKTOP: sway
|
|
tags:
|
|
- Builder-1
|
|
script:
|
|
- eval $(ssh-agent -s)
|
|
- mkdir ~/.ssh/
|
|
- echo "$BASE64_TILEOS_ISO_STORAGE_KEY" | base64 -d > ~/.ssh/id_rsa
|
|
- echo "$TILEOS_ISO_STORAGE_CONFIG" > ~/.ssh/config
|
|
- chmod 644 ~/.ssh/config
|
|
- chmod 400 ~/.ssh/id_rsa
|
|
- docker run --privileged --rm -i -v ${CI_PROJECT_DIR}/output:/builder/builds -v /proc:/proc builder:latest ./build --desktop river --release testing
|
|
- ssh -o StrictHostKeyChecking=no tileos@tileos rm -rf /media/iso/tile-os/ci/river/*
|
|
- scp -o StrictHostKeyChecking=no -p -B ${CI_PROJECT_DIR}/output/amd64/* tileos@tileos:/media/iso/tile-os/ci/river/
|
|
mrproper:
|
|
stage: postbuild
|
|
when: on_success
|
|
tags:
|
|
- Builder-1
|
|
needs:
|
|
- tileos-sway-amd64
|
|
- tileos-river-amd64
|
|
script:
|
|
- docker system prune -a -f
|
|
|