Commit 2d7f3824 authored by AlmAck's avatar AlmAck

general improvements

parent 63d6b8bc
Pipeline #7 failed
......@@ -19,17 +19,17 @@ before_script:
# branch `chakralinux/chakra-bootstrap` becomes the docker image tag `chakra-bootstrap`
#- CONTAINER_TEST_IMAGE=$CONTAINER_REGISTRY_DOMAIN/$CONTAINER_REGISTRY_NAMESPACE/$CONTAINER_IMAGE_NAME:`echo $CI_BUILD_REF_NAME | sed -e 's/[\/|.]/-/g'`
- CONTAINER_TEST_IMAGE=$CONTAINER_REGISTRY_NAMESPACE/$CONTAINER_IMAGE_NAME:`echo $CI_BUILD_REF_NAME | sed -e 's/[\/|.]/-/g'`
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CONTAINER_REGISTRY_DOMAIN
- apk update && apk upgrade
# we need a random generator enabled to speed up the pacman-key --populate generation
- apk add --update rng-tools bash openrc curl xz tar
- rc-status
- touch /run/openrc/softlevel
- service rngd start
build:
stage: build
services:
- docker:dind
before_script:
# we need a random generator enabled to speed up the pacman-key --populate generation
- apk add rng-tools
- service rngd start
#- echo HRNGDEVICE=/dev/urandom >> /etc/default/rng-tools && service rng-tools restart
script:
# generate the Chakra base bootstrap image
- ./bootstraps/scripts/build.sh
......@@ -37,6 +37,8 @@ build:
- docker build $CONTAINER_TEST_IMAGE .
- docker login -u $DOCKER_REGISTRY_USERNAME -p $DOCKER_REGISTRY_PASSWORD
- docker push $CONTAINER_TEST_IMAGE
cache:
- /tmp/bootstrap-packages
tags:
- docker
......@@ -45,8 +47,6 @@ test:
script:
# CI test script -- exit 0 for success or exit > 0 for failure, optionally output coverage info here
- docker run --rm=true $CONTAINER_TEST_IMAGE echo "Success, $CONTAINER_TEST_IMAGE prepared." && exit 0;
tags:
- docker
release-image:
stage: release
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment