stages: - build # needed environment variables variables: IMAGE_NAME: SimpleLinux IMAGE_VERSION: 0.0.1 build-iso-image: image: ubuntu:18.04 stage: build artifacts: # artifacts archive name name: "$IMAGE_NAME-$IMAGE_VERSION-$CI_COMMIT_BRANCH-$CI_PIPELINE_ID" # artifacts path paths: - artifacts # update environments and install needed packages before_script: - echo "Hello, $GITLAB_USER_LOGIN" - make build_image - uname -a - apt update && apt upgrade -y && apt install build-essential bc file # script for building artifacts script: - apt update && apt upgrade -y && apt install build-essential bc file - ./scripts/build_image.sh build # installing artifacts to artifacts directory after_script: - rm -rvf artifacts - mkdir -v artifacts - cp -v build/simplelinux.iso artifacts/$IMAGE_NAME-$IMAGE_VERSION-$CI_COMMIT_BRANCH-$CI_PIPELINE_ID.iso - cp -v .log/fulllog.log actifacts/fulllog