This repository was archived by the owner on Jun 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshippable.yml
More file actions
54 lines (44 loc) · 2.09 KB
/
Copy pathshippable.yml
File metadata and controls
54 lines (44 loc) · 2.09 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
language: java
env:
- secure: Vx0Eaosf/cCgmxLQNpsAaEkbMM7fhmNDA2x8aVSzDMwstothq306Pt2KSUocmPdvml/NlxALPi+Amgh4M8JXYVSQbKVRGncOFn+YHaE0UgjSsYsyBq1NbRq8ibSCSM8e4fvcru9Ykp47XD98ooHokkN+DCE4eYNwsG2XRoS72zHYEh5ghWJH6/PvweFApSLYvOu56Z3cDxbqjs6HwAB0KWuiMiygDdmLLo7GL43cIZg8h2fl8QNMeuTdn8cxETMgppiyDvWywVy66oNwsEeX79PmKlE84kF53H6tZ+vHoEth1ENlboYIqDChesmlctowJqysesK/2KO1zIN8YcDC6Q==
branches:
only:
- master
- beta*
- release*
jdk:
- openjdk11
- oraclejdk11
before_install:
build:
ci:
- source /etc/drydock/.env
- echo $COMMIT
- echo $BUILD_NUMBER
- mkdir -p ~/.m2
- shippable_retry curl -O -L https://dl.bintray.com/pineapple/generic/pineapple-3rdparty-maven-dependencies-1.10.0.tar
- tar xfv pineapple-3rdparty-maven-dependencies-1.10.0.tar
- mv -f repository ~/.m2/
- shippable_retry mvn -q install
post_ci:
- PINEAPPLE_VERSION=$(mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.3.1:exec)
- DOCKER_VERSION=$PINEAPPLE_VERSION.B$BUILD_NUMBER
- echo $PINEAPPLE_VERSION
- echo $DOCKER_VERSION
- mkdir -p $SHIPPABLE_BUILD_DIR/dockersrc
- cp $SHIPPABLE_BUILD_DIR/src/ci/Dockerfile.shippable $SHIPPABLE_BUILD_DIR/dockersrc/Dockerfile
- cp /root/src/github.com/athrane/pineapple/applications/pineapple-web-application/pineapple-standalone-web-client/target/pineapple-standalone-web-client-*.zip $SHIPPABLE_BUILD_DIR/dockersrc
- docker build --build-arg PINEAPPLE_VERSION=$PINEAPPLE_VERSION -t pineapple/pineapple:$DOCKER_VERSION $SHIPPABLE_BUILD_DIR/dockersrc
- docker tag pineapple/pineapple:$DOCKER_VERSION pineapple/pineapple:latest
- docker push pineapple/pineapple:$DOCKER_VERSION
- docker push pineapple/pineapple:latest
on_success:
- echo "<settings><servers><server><id>bintray-pineapple-maven</id>
<username>einheriii</username>
<password>${BINTRAY_PASSWORD}</password>
</server></servers></settings>" > ~/.m2/settings.xml
- mvn --quiet deploy
integrations:
hub:
- integrationName: docker
type: docker