Commit 1e4b3915 authored by Daniel Sonck's avatar Daniel Sonck
Browse files

Merge branch 'feature/gitlab-ci' into 'develop'

Add .go folder as /go volume

See merge request !2
parents cd3df1fb 17a730c5
Pipeline #93 passed with stage
in 1 minute and 49 seconds
......@@ -34,7 +34,7 @@ buildah copy "${C}" "${PWD}/"internal/ ./internal/ || on_fail
buildah copy "${C}" "${PWD}/"*.do ./ || on_fail
buildah copy "${C}" "${PWD}/playlist.version.auto.tfvars" ./ || on_fail
buildah run --volume "${PWD}/.redo:${BUILD_DIR}/.redo" --volume "${PWD}/target:${BUILD_DIR}/target" -- "${C}" redo all || on_fail
buildah run --volume "${PWD}/.go:/go" --volume "${PWD}/.redo:${BUILD_DIR}/.redo" --volume "${PWD}/target:${BUILD_DIR}/target" -- "${C}" redo all || on_fail
buildah rm "${C}"
......@@ -43,4 +43,4 @@ buildah copy "${C}" "${PWD}/target/output/playlist" /playlist || on_fail
buildah config --port 2001 --entrypoint '["/playlist"]' --cmd 'start --config /config/playlist.yml' "${C}"
buildah commit "${C}" "$1/thfmr/playlist:$VERSION" || on_fail
buildah push "$1/thfmr/playlist:$VERSION" "docker://$1/thfmr/playlist:$VERSION"
buildah rm "${C}"
\ No newline at end of file
buildah rm "${C}"
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