-
Notifications
You must be signed in to change notification settings - Fork 97
54 lines (47 loc) · 1.78 KB
/
task.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
name: Push OpenCGA TASK
on:
push:
branches:
- TASK-*
workflow_dispatch:
jobs:
build:
uses: opencb/java-common-libs/.github/workflows/[email protected]
with:
maven_opts: -P storage-hadoop,hdp3.1,RClient,opencga-storage-hadoop-deps -Dopencga.war.name=opencga -Dcheckstyle.skip -pl '!:opencga-storage-hadoop-deps-emr6.1,!:opencga-storage-hadoop-deps-hdp2.6'
test:
uses: ./.github/workflows/test-analysis.yml
needs: build
secrets: inherit
with:
test_profile: runShortTests
report_context: development
deploy-maven:
name: Deploy in maven only for renamed versions
uses: opencb/java-common-libs/.github/workflows/[email protected]
needs: [ build, test ]
if: contains( needs.build.outputs.version ,'TASK')
secrets: inherit
deploy-docker:
uses: opencb/java-common-libs/.github/workflows/[email protected]
needs: test
with:
cli: python3 ./build/cloud/docker/docker-build.py push --images base,init --tag ${{ github.ref_name }}
secrets: inherit
# The following jobs are to see that the previous 'if' doesn't fail and that the maven deploy is executed because it is true
snapshot-version:
name: Check SNAPSHOT version
needs: [ build, test ]
if: contains(needs.build.outputs.version ,'SNAPSHOT')
runs-on: ubuntu-22.04
steps:
- name: test-version-from-check
run: echo "Project version is " ${{ needs.build.outputs.version }}
task-version:
name: Check TASK version
needs: [ build, test ]
if: contains(needs.build.outputs.version ,'TASK')
runs-on: ubuntu-22.04
steps:
- name: test-version-from-check
run: echo "Project version is " ${{ needs.build.outputs.version }}