From d689d42723337b8b9c76e754f1e5ddab39163df0 Mon Sep 17 00:00:00 2001 From: Giovanni Gargiulo Date: Fri, 24 Nov 2023 11:51:36 +0000 Subject: [PATCH] chore: added follower build --- .github/workflows/publish-summit-2023.yaml | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/.github/workflows/publish-summit-2023.yaml b/.github/workflows/publish-summit-2023.yaml index 2626f9738..4f57f1296 100644 --- a/.github/workflows/publish-summit-2023.yaml +++ b/.github/workflows/publish-summit-2023.yaml @@ -89,6 +89,51 @@ jobs: ${{ env.PRIVATE_DOCKER_REGISTRY_URL }}/${{ env.APP_NAME }}:${{ env.ARTIFACT_VERSION }} + publish-voting-ledger-follower-app: + runs-on: self-hosted + env: + APP_NAME: voting-ledger-follower-app + needs: build-version + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Set up JDK + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '17' + cache: 'gradle' + - name: Execute Gradle build + working-directory: backend-services/${{ env.APP_NAME }} + run: ./gradlew bootJar + + - name: Private Docker Hub Login + uses: docker/login-action@v2 + with: + registry: ${{ env.PRIVATE_DOCKER_REGISTRY_URL }} + username: ${{ env.PRIVATE_DOCKER_REGISTRY_USER }} + password: ${{ env.PRIVATE_DOCKER_REGISTRY_PASS }} + + - name: Public Docker Hub Login + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_REGISTRY_USER }} + password: ${{ secrets.DOCKER_REGISTRY_TOKEN }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Build and Push docker image + uses: docker/build-push-action@v4 + env: + ARTIFACT_VERSION: ${{needs.build-version.outputs.ARTIFACT_VERSION}} + with: + context: backend-services/${{ env.APP_NAME }} + push: true + tags: | + ${{ env.PRIVATE_DOCKER_REGISTRY_URL }}/${{ env.APP_NAME }}:${{ env.ARTIFACT_VERSION }} + + publish-ui-summit-2023: runs-on: self-hosted env: