forked from aws/sagemaker-spark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec-deploy.yml
24 lines (21 loc) · 914 Bytes
/
buildspec-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
version: 0.2
phases:
install:
commands:
# install openjdk-8
- apt-get update
- apt-get -y install openjdk-8-jdk
- update-java-alternatives -s java-1.8.0-openjdk-amd64
- export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/bin
# install sbt launcher
- curl -LO https://github.com/sbt/sbt/releases/download/v1.1.6/sbt-1.1.6.tgz
- tar -xf sbt-*.tgz
- export PATH=$CODEBUILD_SRC_DIR/sbt/bin/:$PATH
- cd $CODEBUILD_SRC_DIR/sagemaker-spark-sdk
- sbt -Dsbt.log.noformat=true sbtVersion scalaVersion
build:
commands:
# ignore reuse error to allow retry of this build stage
# when sonatype step has transient error
- publish-pypi-package --ignore-reuse-error $CODEBUILD_SRC_DIR_ARTIFACT_1/sagemaker-pyspark-sdk/dist/sagemaker_pyspark-*.tar.gz
- publish-sonatype-package $CODEBUILD_SRC_DIR_ARTIFACT_1/sagemaker-spark-sdk