From b72450cb1b1b057ce8ced3b218fe102858124856 Mon Sep 17 00:00:00 2001 From: subochev Date: Wed, 1 Apr 2026 16:51:29 +0300 Subject: [PATCH] =?UTF-8?q?DEVX-191:=20=D0=A0=D0=B0=D0=B7=D1=80=D0=B0?= =?UTF-8?q?=D0=B1=D0=BE=D1=82=D0=B0=D1=82=D1=8C=20Kubernetus=20=D1=81?= =?UTF-8?q?=D0=B5=D1=80=D0=B2=D0=B8=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build-agent.yaml | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .gitea/workflows/build-agent.yaml diff --git a/.gitea/workflows/build-agent.yaml b/.gitea/workflows/build-agent.yaml new file mode 100644 index 0000000..4c6d261 --- /dev/null +++ b/.gitea/workflows/build-agent.yaml @@ -0,0 +1,44 @@ +name: 'Build Agent' +on: + workflow_dispatch: + inputs: + branch: + description: 'Ветка' + required: true + type: string + default: 'feature/DEVX-191' +jobs: + deploy-dev: + name: 'Deploy to dev' + runs-on: ubuntu-latest + steps: + - name: 'Print Info' + run: | + echo "Cloning ${{ github.event.inputs.repo_path }}" + echo "From branch ${{ github.event.inputs.branch }}" + - name: Cloning + uses: https://git.binom.pw/otp/devops/clone@main + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + repository: 'devspc/devspace-agent' + branch: ${{ github.event.inputs.branch }} + - uses: https://git.binom.pw/otp/devops/config-gradle@main + - uses: https://git.binom.pw/otp/devops/setup-gradle@main + - name: Setup Jvm + uses: actions/setup-java@v4 + with: + java-version: 21 + distribution: "adopt" + - name: Building + run: | + ./gradlew shadowJar --no-daemon -x cyclonedxBom + echo 'Jar in libs folder' + ls ./build/libs + - name: 'Cleanup' + if: always() + shell: bash + run: | + echo 'Cleaning...' + rm -rf ~/.gradle/init.gradle.kts + rm -rf ~/.ssh/config + rm -rf ~/.ssh/my_key \ No newline at end of file