From b5238e3d3a4393583842f5af9a2bed144ea2a430 Mon Sep 17 00:00:00 2001 From: "niko.usai" Date: Tue, 14 Dec 2021 09:34:18 +0100 Subject: [PATCH] publish all --- .github/workflows/release-all.yaml | 52 ++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .github/workflows/release-all.yaml diff --git a/.github/workflows/release-all.yaml b/.github/workflows/release-all.yaml new file mode 100644 index 00000000..c6e43739 --- /dev/null +++ b/.github/workflows/release-all.yaml @@ -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 }}