/
ci-build-artifacts-no-push-gradle.yml~
98 lines (86 loc) · 2.78 KB
/
ci-build-artifacts-no-push-gradle.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Build and Test (w/ Gradle)
on:
#disable gradle build until ISIS-2437 is resolved
schedule:
# * dummy, such that virtually never runs
- cron: '0 0 1 1 0'
# push:
# branches:
# - master
# pull_request:
# branches:
# - master
permissions:
contents: read
jobs:
build:
name: build-local-no-push-gradle
runs-on: ubuntu-latest
env:
# to be shared among all steps of this job
BASELINE: 2.0.0-RC3
PROJECT_ROOT_PATH: ${{ github.workspace }}
CI_SCRIPTS_PATH: ${{ github.workspace }}/scripts/ci
# not used, would be nice if we could transform the TIMESTAMP string into the REVISION
# variable here, but it seems github not yet has any string expression manipulation
# operators other than concatination
TIMESTAMP: ${{ github.event.head_commit.timestamp }}
steps:
- uses: actions/checkout@v2.4.0
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 17
- name: Set up Gradle and print Version
uses: eskatos/gradle-command-action@v2
with:
gradle-version: 6.5.1
wrapper-cache-enabled: true
dependencies-cache-enabled: true
arguments: --version
- name: Setup Script Environment
shell: bash
run: |
echo ============== ENV =================
echo BASELINE \: $BASELINE
echo TIMESTAMP \: $TIMESTAMP
echo PROJECT_ROOT_PATH\: $PROJECT_ROOT_PATH
echo CI_SCRIPTS_PATH \: $CI_SCRIPTS_PATH
echo MVN_STAGES \: $MVN_STAGES
echo ======================================
- name: Build Artifacts (w/ Gradle)
shell: bash
run: bash $CI_SCRIPTS_PATH/build-artifacts-using-gradle.sh
# env:
# # also build and run regressiontests and kroviz
# MVN_ADDITIONAL_OPTS: -Dregressiontests-module -Dkroviz-module
# FOR DEBUG USE
# - name: Dump GitHub context
# env:
# ENV_CONTEXT: ${{ toJson(env) }}
# run: echo "$ENV_CONTEXT"
# - name: Dump GitHub context
# env:
# GITHUB_CONTEXT: ${{ toJson(github) }}
# run: echo "$GITHUB_CONTEXT"
# - name: Dump job context
# env:
# JOB_CONTEXT: ${{ toJson(job) }}
# run: echo "$JOB_CONTEXT"
# - name: Dump steps context
# env:
# STEPS_CONTEXT: ${{ toJson(steps) }}
# run: echo "$STEPS_CONTEXT"
# - name: Dump runner context
# env:
# RUNNER_CONTEXT: ${{ toJson(runner) }}
# run: echo "$RUNNER_CONTEXT"
# - name: Dump strategy context
# env:
# STRATEGY_CONTEXT: ${{ toJson(strategy) }}
# run: echo "$STRATEGY_CONTEXT"
# - name: Dump matrix context
# env:
# MATRIX_CONTEXT: ${{ toJson(matrix) }}
# run: echo "$MATRIX_CONTEXT"