Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TouHou.FM
Radio Go
Playlist
Commits
08e53fb3
Unverified
Commit
08e53fb3
authored
Sep 10, 2020
by
Daniel Sonck
Browse files
Use PWD in copy
parent
8e0f00c4
Pipeline
#8
passed with stage
in 7 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
build-docker.sh
View file @
08e53fb3
...
...
@@ -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
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment