From 876ffef40234ccad9e8f2a371585f8a13f2e3e34 Mon Sep 17 00:00:00 2001 From: Alfredo Gutierrez Date: Thu, 9 Jan 2025 11:52:47 -0600 Subject: [PATCH] feat: Add simulator image to publish artifacts CI (#439) Signed-off-by: Alfredo Gutierrez --- .github/workflows/release-push-image.yaml | 21 ++++++++++++++++++++- server/docs/configuration.md | 2 +- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-push-image.yaml b/.github/workflows/release-push-image.yaml index bcba2e6b5..ba3ef8aad 100644 --- a/.github/workflows/release-push-image.yaml +++ b/.github/workflows/release-push-image.yaml @@ -87,7 +87,7 @@ jobs: VERSION=$(grep 'version=' gradle.properties | cut -d '=' -f2) echo "VERSION=${VERSION}" >> $GITHUB_ENV - - name: Build and push image + - name: Server - Build and push image uses: docker/build-push-action@1ca370b3a9802c92e886402e0dd88098a2533b12 # v6.4.1 with: context: ./server/docker @@ -102,6 +102,25 @@ jobs: build-contexts: | distributions=./server/build/distributions + # Build and push SIMULATOR image + + - name: Simulator - Prepare docker directory + run: | + ./gradlew :simulator:copyDependenciesFolders + + - name: Simulator - Build and push image + uses: docker/build-push-action@1ca370b3a9802c92e886402e0dd88098a2533b12 # v6.4.1 + with: + context: ./simulator/build/docker + file: ./simulator/docker/Dockerfile + cache-from: type=gha + cache-to: type=gha,mode=max + platforms: linux/amd64, linux/arm64 + push: true + tags: ${{ env.REGISTRY }}/${{ github.repository }}/simulator-image:${{ env.VERSION }} + build-args: | + VERSION=${{ env.VERSION }} + helm-chart-release: needs: publish runs-on: block-node-linux-medium diff --git a/server/docs/configuration.md b/server/docs/configuration.md index c01d219ba..69f880d59 100644 --- a/server/docs/configuration.md +++ b/server/docs/configuration.md @@ -21,4 +21,4 @@ defaults and can be left unchanged. It is recommended to browse the properties b | MEDIATOR_RING_BUFFER_SIZE | Size of the ring buffer used by the mediator (must be a power of 2) | 67108864 | | NOTIFIER_RING_BUFFER_SIZE | Size of the ring buffer used by the notifier (must be a power of 2) | 2048 | | SERVER_PORT | The port the server will listen on | 8080 | -| SERVER_MAX_MESSAGE_SIZE_BYTES | The maximum size of a message frame in bytes | 1048576 | \ No newline at end of file +| SERVER_MAX_MESSAGE_SIZE_BYTES | The maximum size of a message frame in bytes | 1048576 |