Skip to content

Commit

Permalink
chore: added follower build
Browse files Browse the repository at this point in the history
  • Loading branch information
nemo83 committed Nov 24, 2023
1 parent 28d9e37 commit d689d42
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/publish-summit-2023.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d689d42

Please sign in to comment.