-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
47 lines (44 loc) · 1.47 KB
/
wercker.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright (c) 2017, 2019 University of York and others
# This program and the accompanying materials are made available
# under the terms of the Eclipse Public License 2.0 which is
# available at http://www.eclipse.org/legal/epl-2.0.
#
# SPDX-License-Identifier: EPL-2.0
box:
id: openjdk:11.0.3-jdk-stretch
username: $DOCKERUSR
password: $DOCKERPWD
build:
steps:
- wercker/maven:
goals: clean install
cache_repo: true
version: 3.6.0
deploy:
steps:
- install-packages:
packages: rsync
- add-ssh-key:
keyname: deployment
- add-to-known_hosts:
hostname: $ROBOSTAR_WEB_HOST
fingerprint: $ROBOSTAR_WEB_SSH_FINGERPRINT
type: $ROBOSTAR_WEB_SSH_FINGERPRINT_TYPE
- script:
name: uploading update site
code: |-
./upload.sh
trigger-recompile:
steps:
- script:
name: trigger recompile of dependents
code: |-
# Propagate recompilation if global flag is active
if [[ -z ${WERCKER_ROBOSTAR_RECOMPILE_ALL} || ${WERCKER_ROBOSTAR_RECOMPILE_ALL} = false ]]; then
echo "Recompilation is disabled or not set."
else
curl -H 'Authorization: Bearer $WERCKER_ROBOSTAR_TOKEN' \
--request POST \
--data '{"pipelineId":"$NEXT_PIPELINE_PIPELINEID","branch":"$WERCKER_GIT_BRANCH","message":"Automatic recompilation triggered."}' \
https://app.wercker.com/api/v3/runs/
fi