-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update sonatype publish scripts [skip ci] (#3130)
- Loading branch information
Showing
12 changed files
with
207 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
ARG RELEASE_TAG=2.0 | ||
FROM java:8 | ||
|
||
USER root | ||
|
||
# a hack that allows to set ENV var through ARGs | ||
ARG RELEASE_TAG=v3.0.0 | ||
ENV RELEASE_TAG $RELEASE_TAG | ||
|
||
RUN apt-get install git | ||
|
||
RUN useradd -ms /bin/bash geotrellis | ||
|
||
RUN mkdir /home/geotrellis/.ivy2 | ||
COPY gpg.sbt /home/geotrellis/.sbt/1.0/plugins/gpg.sbt | ||
RUN chown -R geotrellis:geotrellis /home/geotrellis | ||
|
||
USER geotrellis | ||
|
||
RUN mkdir -p /home/geotrellis/.sbt/1.0/plugins && mkdir -p /home/geotrellis/.sbt/boot | ||
|
||
RUN set -x \ | ||
&& cd /home/geotrellis \ | ||
&& git clone https://github.com/locationtech/geotrellis /home/geotrellis/geotrellis \ | ||
&& cd /home/geotrellis/geotrellis \ | ||
&& git checkout $RELEASE_TAG | ||
&& git checkout -f $RELEASE_TAG | ||
|
||
WORKDIR /home/geotrellis/geotrellis | ||
WORKDIR /home/geotrellis/geotrellis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,25 @@ | ||
IMG := geotrellis/publish-geotrellis-container | ||
TAG := latest | ||
RELEASE_TAG := 2.0 | ||
IMG := geotrellis/publish-geotrellis-container | ||
TAG := latest | ||
RELEASE_TAG := v3.0.0 | ||
GEOTRELLIS_VERSION_SUFFIX := "" | ||
PGPKEYS_PATH := ~/.gnupg | ||
CREDENTIALS_PATH := ~/.ivy2 | ||
|
||
build: Dockerfile | ||
docker build \ | ||
--build-arg RELEASE_TAG=$(RELEASE_TAG) \ | ||
--no-cache -t ${IMG}:${TAG} . | ||
docker build --build-arg RELEASE_TAG=${RELEASE_TAG} --no-cache -t ${IMG}:${TAG} . | ||
|
||
run: | ||
docker run -it --rm \ | ||
-v ~/.ivy2/.credentials:/home/geotrellis/.ivy2/.credentials \ | ||
-v ~/.gnupg:/home/geotrellis/.gnupg \ | ||
$(IMG):$(TAG) /bin/bash | ||
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 -it $(IMG):$(TAG) publish/publish-to-sonatype.sh | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pgpPassphrase := Some(Array('p', 'a', 's', 's', 'w', 'o', 'r', 'd')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
# Publish to sonatype for all supported scala version 2.11 | ||
|
||
./sbt "project macros" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project vector" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project proj4" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project raster" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project spark" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project spark-pipeline" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project s3" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project s3-spark" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project accumulo" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project accumulo-spark" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project hbase" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project hbase-spark" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project cassandra" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project cassandra-spark" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project geomesa" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project geotools" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project shapefile" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project layer" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project store" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project util" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project vectortile" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project raster-testkit" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project vector-testkit" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project spark-testkit" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt "project gdal" publishSigned -no-colors -J-Drelease=sonatype |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
# Publish to sonatype for all supported scala version 2.12 | ||
|
||
# there is no geomesa project | ||
./sbt -212 "project macros" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project vector" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project proj4" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project raster" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project spark" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project spark-pipeline" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project s3" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project s3-spark" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project accumulo" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project accumulo-spark" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project hbase" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project hbase-spark" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project cassandra" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project cassandra-spark" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project geotools" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project shapefile" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project layer" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project store" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project util" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project vectortile" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project raster-testkit" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project vector-testkit" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project spark-testkit" publishSigned -no-colors -J-Drelease=sonatype \ | ||
&& ./sbt -212 "project gdal" publishSigned -no-colors -J-Drelease=sonatype |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,4 @@ | ||
#!/bin/bash | ||
# Publish to sonatype for all supported scala version 2.11 | ||
|
||
./sbt "project macros" publish-signed \ | ||
&& ./sbt "project vector" publish-signed \ | ||
&& ./sbt "project proj4" publish-signed \ | ||
&& ./sbt "project raster" publish-signed \ | ||
&& ./sbt "project spark" publish-signed \ | ||
&& ./sbt "project s3" publish-signed \ | ||
&& ./sbt "project accumulo" publish-signed \ | ||
&& ./sbt "project cassandra" publish-signed \ | ||
&& ./sbt "project hbase" publish-signed \ | ||
&& ./sbt "project geomesa" publish-signed \ | ||
&& ./sbt "project geowave" publish-signed \ | ||
&& ./sbt "project geotools" publish-signed \ | ||
&& ./sbt "project shapefile" publish-signed \ | ||
&& ./sbt "project util" publish-signed \ | ||
&& ./sbt "project vectortile" publish-signed \ | ||
&& ./sbt "project raster-testkit" publish-signed \ | ||
&& ./sbt "project vector-testkit" publish-signed \ | ||
&& ./sbt "project spark-testkit" publish-signed | ||
./publish/publish-to-sonatype-211.sh | ||
./publish/publish-to-sonatype-212.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.