HedgeDoc ci-build
This commit is contained in:
parent
f29f9d15b8
commit
402292d75e
|
@ -11,10 +11,10 @@ buildfolder=/tmp/hedgedoc-$$
|
||||||
|
|
||||||
if ! podman image exists ${hedgedoc_image}:${hedgedoc_version}; then
|
if ! podman image exists ${hedgedoc_image}:${hedgedoc_version}; then
|
||||||
mkdir ${buildfolder} &&
|
mkdir ${buildfolder} &&
|
||||||
curl -sSfLo ${buildfolder}/Dockerfile -- "https://github.com/hedgedoc/container/raw/master/alpine/Dockerfile" ${buildfolder}/ && {
|
git clone --depth=1 https://github.com/hedgedoc/container ${buildfolder}/ && {
|
||||||
#sed_in_place "^FROM golang" "FROM docker.io/library/golang" ${buildfolder}/Dockerfile
|
#sed_in_place "^FROM golang" "FROM docker.io/library/golang" ${buildfolder}/Dockerfile
|
||||||
#sed_in_place "^FROM alpine" "FROM docker.io/library/alpine" ${buildfolder}/Dockerfile
|
#sed_in_place "^FROM alpine" "FROM docker.io/library/alpine" ${buildfolder}/Dockerfile
|
||||||
TMPDIR=${HOME} podman image build -t ${hedgedoc_image}:${hedgedoc_version} -f ${buildfolder}/Dockerfile ${buildfolder}
|
TMPDIR=${HOME} podman image build -t ${hedgedoc_image}:${hedgedoc_version} --build-arg VERSION=${hedgedoc_version/%-alpine/} -f ${buildfolder}/alpine/Dockerfile ${buildfolder}
|
||||||
}
|
}
|
||||||
rm -rf ${buildfolder}
|
rm -rf ${buildfolder}
|
||||||
podman image prune -a -f --filter dangling=true
|
podman image prune -a -f --filter dangling=true
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
## vars
|
## vars
|
||||||
hedgedoc_image="quay.io/hedgedoc/hedgedoc"
|
hedgedoc_image="quay.io/hedgedoc/hedgedoc"
|
||||||
|
#hedgedoc_image="git.garbaye.fr/garbaye/hedgedoc"
|
||||||
hedgedoc_version='1.9.6-alpine'
|
hedgedoc_version='1.9.6-alpine'
|
||||||
database_image="docker.io/library/postgres"
|
database_image="docker.io/library/postgres"
|
||||||
database_version='14.5-alpine'
|
database_version='14.5-alpine'
|
||||||
|
|
Loading…
Reference in a new issue