Skip to content

Commit

Permalink
publish all
Browse files Browse the repository at this point in the history
  • Loading branch information
niko.usai committed Dec 14, 2021
1 parent 3bd623c commit b5238e3
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/release-all.yaml
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 }}

0 comments on commit b5238e3

Please sign in to comment.