Update gradle-build.yaml

This commit is contained in:
subochev 2025-05-18 23:57:38 +03:00
parent 651ea55aef
commit 948c720a0e

View File

@ -22,4 +22,26 @@ jobs:
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"
run: "./gradlew -Pversion=${{ gitea.ref_name }} shadowJar -Dorg.gradle.jvmargs=-Xmx4096M --parallel --no-daemon --no-watch-fs --stacktrace"
- name: Log in to Repository
uses: redhat-actions/podman-login@v1
with:
registry: ${{ vars.DOCKER_REGISTRY_HOST }}
username: ${{ vars.DOCKER_REGISTRY_USERNAME }}
password: ${{ vars.DOCKER_REGISTRY_PASSWORD }}
- name: Buildah Action
uses: redhat-actions/buildah-build@v2
with:
image: ${{ vars.DOCKER_REGISTRY_HOST }}/${{ inputs.image_name }}
tags: ${{ gitea.ref_name }}
oci: true
containerfiles: |
./server/Dockerfile
- name: Push to Repository
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ vars.DOCKER_REGISTRY_HOST }}/${{ inputs.image_name }}
tags: ${{ gitea.ref_name }}
registry: ${{ vars.DOCKER_REGISTRY_HOST }}
username: ${{ vars.DOCKER_REGISTRY_USERNAME }}
password: ${{ vars.DOCKER_REGISTRY_PASSWORD }}