Unverified Commit 08e53fb3 authored by Daniel Sonck's avatar Daniel Sonck
Browse files

Use PWD in copy

parent 8e0f00c4
Pipeline #8 passed with stage
in 7 minutes and 28 seconds
......@@ -24,19 +24,19 @@ buildah config --workingdir "${BUILD_DIR}" "${C}" || on_fail
buildah add "${C}" https://github.com/apenwarr/redo/archive/redo-0.42c.tar.gz ./ || on_fail
buildah run -- "${C}" tar -xvf redo-0.42c.tar.gz || on_fail
buildah run -- "${C}" sh -c "cd redo-redo-0.42c; DESTDIR= PREFIX=/usr/local ./do -j10 install" || on_fail
buildah copy "${C}" go.* ./ || on_fail
buildah copy "${C}" "${PWD}/"go.* ./ || on_fail
buildah copy "${C}" main.go ./ || on_fail
buildah copy "${C}" internal/ ./internal/ || on_fail
buildah copy "${C}" ./*.do ./ || on_fail
buildah copy "${C}" version.txt ./ || on_fail
buildah copy "${C}" "${PWD}/"main.go ./ || on_fail
buildah copy "${C}" "${PWD}/"internal/ ./internal/ || on_fail
buildah copy "${C}" "${PWD}/"*.do ./ || on_fail
buildah copy "${C}" "${PWD}/version.txt" ./ || on_fail
buildah run --volume "${PWD}/.redo:${BUILD_DIR}/.redo" --volume "${PWD}/target:${BUILD_DIR}/target" -- "${C}" redo all || on_fail
buildah rm "${C}"
C=$(buildah from scratch || exit 1)
buildah copy "${C}" target/output/playlist /playlist || on_fail
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"
......
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