UNCLASSIFIED

Skip to content
Snippets Groups Projects
Commit 5fb901f0 authored by Ben's avatar Ben
Browse files

tagging CI to only use shell runner

parent 594e1bdd
Branches
No related merge requests found
......@@ -7,6 +7,8 @@ before_script:
- docker info
build_image:
tags:
- shell
stage: build
script:
- docker build -t registry.cybbh.space/courseware-as-code/courseware-builder/container .
......@@ -14,6 +16,8 @@ build_image:
- master
test_image:
tags:
- shell
stage: test
script:
- docker run registry.cybbh.space/courseware-as-code/courseware-builder/container /opt/course_builder/tests.sh
......@@ -21,6 +25,8 @@ test_image:
- master
push_image:
tags:
- shell
stage: push
script:
- docker login -u "${DOCKER_LOGIN_USER}" -p "${DOCKER_LOGIN_PASS}" registry.cybbh.space
......
......@@ -55,5 +55,6 @@ sudo gitlab-runner register -n \
--url https://git.cybbh.space/ \
--registration-token "${REGISTRATION_TOKEN}" \
--executor shell \
--tag-list shell \
--description "Docker Group Runner"
```
......@@ -11,7 +11,7 @@ declare -a test_commands=("/opt/appbin/hugo version"
function run_test () {
cmd="$1"
echo [-] Running command: $cmd
$cmd && echo [+] Succesfully running previous command || errors="$errors\n Error running the command: $cmd"
$cmd && echo [+] Succesfully ran previous command || errors="$errors\n Error running the command: $cmd"
echo ""
}
errors=""
......
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