-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
niko.usai
committed
Dec 14, 2021
1 parent
3bd623c
commit b5238e3
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
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 | ||
- uses: ./.github/actions/prepare-java | ||
- 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 }} |