forked from locationtech/geotrellis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.template
25 lines (22 loc) · 1.07 KB
/
Makefile.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
IMG := geotrellis/publish-geotrellis-container
TAG := latest
RELEASE_TAG := vX.Y.Z
GEOTRELLIS_VERSION_SUFFIX := ""
PGPKEYS_PATH := ~/.gnupg
CREDENTIALS_PATH := ~/.ivy2
build: Dockerfile
docker build --build-arg RELEASE_TAG=${RELEASE_TAG} --no-cache -t ${IMG}:${TAG} .
run:
docker run -e GEOTRELLIS_VERSION_SUFFIX=${GEOTRELLIS_VERSION_SUFFIX} -it --rm \
-v ${PWD}/gpg.sbt:/home/geotrellis/.sbt/1.0/plugins/gpg.sbt \
-v ${PWD}/global.sbt:/home/geotrellis/.sbt/1.0/global.sbt \
-v ${CREDENTIALS_PATH}/.credentials:/home/geotrellis/.ivy2/.credentials \
-v ${PGPKEYS_PATH}:/home/geotrellis/.gnupg \
${IMG}:${TAG} /bin/bash
publish:
docker run -e GEOTRELLIS_VERSION_SUFFIX=${GEOTRELLIS_VERSION_SUFFIX} -it --rm \
-v ${PWD}/gpg.sbt:/home/geotrellis/.sbt/1.0/plugins/gpg.sbt \
-v ${PWD}/global.sbt:/home/geotrellis/.sbt/1.0/global.sbt \
-v ${CREDENTIALS_PATH}/.credentials:/home/geotrellis/.ivy2/.credentials \
-v ${PGPKEYS_PATH}:/home/geotrellis/.gnupg \
${IMG}:${TAG} publish/publish-to-sonatype.sh