-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (54 loc) · 1.87 KB
/
release-all.yaml
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
name: Release Joyce new version
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Set VERSION
id: vars
run: |
echo "::set-output name=VERSION::$(echo ${GITHUB_REF#refs/tags/v})"
echo "VERSION=${{steps.vars.outputs.VERSION}}"
- name: Build all modules
run: mvn --batch-mode -Drevision=${{steps.vars.outputs.VERSION}} package deploy sonar:sonar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- uses: ./.github/actions/docker-publish
name: Publish Import Gateway
with:
module: joyce-import-gateway
tag: ${{ steps.vars.outputs.VERSION }}
docker_pwd: ${{ secrets.DOCKER_PASSWORD }}
- uses: ./.github/actions/docker-publish
name: Publish mongodb Sink
with:
module: joyce-mongodb-sink
tag: ${{ steps.vars.outputs.VERSION }}
docker_pwd: ${{ secrets.DOCKER_PASSWORD }}
- name: Build Kafka Connect
run: mvn -f InsertJoyceMessageKey/pom.xml clean package
working-directory: ./joyce-kafka-connect
- uses: ./.github/actions/docker-publish
name: Publish Kafka Connect
with:
module: joyce-kafka-connect
tag: ${{ steps.vars.outputs.VERSION }}
docker_pwd: ${{ secrets.DOCKER_PASSWORD }}
- uses: ./.github/actions/docker-publish
with:
module: joyce-api
tag: ${{ steps.vars.outputs.VERSION }}
docker_pwd: ${{ secrets.DOCKER_PASSWORD }}