From b17ca8ce6d89715048fec10206de360e93ee61d8 Mon Sep 17 00:00:00 2001 From: Nathan Cannon Date: Sun, 29 Apr 2018 01:48:43 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c5cc71b..d9cefb3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,13 +1,11 @@ image: nimlang/nim:alpine -variables: - GIT_DEPTH: "1" - cache: paths: - .nimble/* before_script: + - 'git fetch --tags' - 'apk update && apk add libressl-dev clang nasm grub' - 'nimble update && nimble install nake' - 'nim c nakefile' @@ -15,10 +13,27 @@ before_script: compile: stage: build script: - - '~/.nimble/bin/nake build' + - './nakefile build' artifacts: paths: - myos.bin only: - tags - - triggers \ No newline at end of file + - triggers + - web + +create_disc: + stage: deploy + dependencies: + - compile + script: + - 'apk add xorriso grub-bios' + - './nakefile build-release' + - './builddisc.sh' + artifacts: + paths: + - myos.iso + only: + - tags + - triggers + - web