From ad967c002a3644daeafdc78e72a6727e55947552 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 28 Jun 2024 13:28:12 +0600 Subject: [PATCH] update github ci/cd scripts --- .github/workflows/build_and_publish.yml | 1 + .github/workflows/docker-publish.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/build_and_publish.yml b/.github/workflows/build_and_publish.yml index 76e4cbb..79a178e 100644 --- a/.github/workflows/build_and_publish.yml +++ b/.github/workflows/build_and_publish.yml @@ -14,6 +14,7 @@ jobs: java-version: 17 - name: Rewrite version run: | + printf "\norg.gradle.jvmargs=-Xmx1g -Xms500m\nkotlin.daemon.jvmargs=-Xmx1g -Xms500m\norg.gradle.daemon=false" >> gradle.properties branch="`echo "${{ github.ref }}" | grep -o "[^/]*$"`" cat gradle.properties | sed -e "s/^version=\([0-9\.]*\)/version=\1-branch_$branch-build${{ github.run_number }}/" > gradle.properties.tmp rm gradle.properties diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 46f6769..308edcd 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -16,6 +16,7 @@ jobs: java-version: 17 - name: Rewrite version run: | + printf "\norg.gradle.jvmargs=-Xmx1g -Xms500m\nkotlin.daemon.jvmargs=-Xmx1g -Xms500m\norg.gradle.daemon=false" >> gradle.properties branch="`echo "${{ github.ref }}" | grep -o "[^/]*$"`" if [[ "$branch" != "master" ]]; then cat gradle.properties | sed -e "s/^version=\([0-9\.]*\)/version=\1-branch_$branch-build${{ github.run_number }}/" > gradle.properties.tmp