devops/.gitea/workflows/gradle-build.yaml
Workflow config file is invalid. Please check your config file: yaml: line 11: did not find expected '-' indicator
2025-05-18 17:02:04 +03:00

26 lines
895 B
YAML

name: 'Build gradle'
description: Build docker image with docker
inputs:
image_name:
description: Name of image
required: true
runs:
using: "composite"
steps:
- name: Setup Jvm
uses: actions/setup-java@v1
with:
java-version: 21
distribution: 'adopt'
- name: "Building"
env:
HELM_REPOSITORY: ${{ vars.HELM_REPOSITORY }}
DOCKER_REGISTRY_USERNAME: ${{ vars.DOCKER_REGISTRY_USERNAME }}
DOCKER_REGISTRY_PASSWORD: ${{ vars.DOCKER_REGISTRY_PASSWORD }}
DOCKER_IMAGE_NAME: ${{ vars.DOCKER_REGISTRY_HOST }}/${{ inputs.image_name }}:${{ gitea.ref_name }}
DOCKER_REGISTRY_HOST: ${{ vars.DOCKER_REGISTRY_HOST }}
DOCKER_HOST: unix:///run/podman/podman.sock
run: './gradlew -Pversion=${{ gitea.ref_name }} pushDockerImage -Dorg.gradle.jvmargs=-Xmx4096M --parallel --no-daemon --no-watch-fs --stacktrace'