Compare commits

...

22 Commits

Author SHA1 Message Date
subochev f8bc6311de init 2026-01-05 04:52:04 +03:00
subochev bb5ec69d07 init 2026-01-05 04:38:28 +03:00
subochev fa12b09867 init 2025-11-04 03:35:56 +03:00
subochev 710a46674d init 2025-09-04 05:45:44 +03:00
subochev b24b0655b6 init 2025-09-04 05:10:39 +03:00
subochev 79ac0bed5d init 2025-09-04 04:49:36 +03:00
subochev d37843162a init 2025-09-04 04:37:21 +03:00
subochev 775c8e0c21 fixed 2025-09-02 02:47:18 +03:00
subochev 54d4568d2b Update action.yaml 2025-08-03 13:38:22 +03:00
subochev e5430de9f8 Update action.yaml 2025-08-03 13:37:13 +03:00
subochev 913493833b Update action.yaml 2025-08-03 13:35:59 +03:00
subochev 0bd454e0c2 Update action.yaml 2025-08-03 13:32:13 +03:00
subochev f5eef8cda0 Update action.yaml 2025-08-03 13:04:46 +03:00
subochev 2f6af0a730 Update action.yaml 2025-08-03 13:04:12 +03:00
subochev 0ed1fd751d Update action.yaml 2025-08-03 13:02:19 +03:00
subochev f160ff8928 11 2025-08-03 13:01:01 +03:00
subochev c1480c025c 1 2025-08-03 12:48:35 +03:00
subochev 7095e41f61 docker 2025-08-03 12:44:17 +03:00
subochev f8314d3f31 Update action.yml 2025-05-23 03:14:46 +03:00
subochev 62ada21bcd Update action.yml 2025-05-23 03:13:03 +03:00
subochev 78a76a7ffd Update action.yml 2025-05-23 03:02:49 +03:00
subochev 135e24ff9a Update action.yml 2025-05-23 03:02:25 +03:00
4 changed files with 65 additions and 52 deletions
+57
View File
@@ -0,0 +1,57 @@
name: "Build and push docker image"
description: "Run podman build and push to regestry"
inputs:
image_name: # id of input
description: "Name of image"
required: true
tags: # id of input
description: "Tags of image"
required: true
context:
description: "Docker directory location"
default: "."
build-args:
description: "Docker Build Arguments"
required: false
# outputs:
# random-number:
# description: "Random number"
# value: ${{ steps.random-number-generator.outputs.random-number }}
runs:
using: "composite"
steps:
- name: Print Image Name
shell: bash
run: >-
echo '⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐';
echo 'ImageName: ${{ vars.DOCKER_REGISTRY_HOST }}/${{ inputs.image_name }}:${{ inputs.tags }}';
echo '⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐⭐';
- name: Build Image
id: build-image
uses: redhat-actions/buildah-build@v2
env:
RUNNER_OS: Linux
with:
image: ${{ inputs.image_name }}
tags: ${{ inputs.tags }}
containerfiles: |
${{ inputs.context }}/Dockerfile
oci: true
tls-verify: false
context: ${{ inputs.context }}
build-args: ${{ inputs.build-args }}
extra-args: |
--retry=7
- name: Push To Repository
id: push-to-repository
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ inputs.image_name }}
tags: ${{ inputs.tags }}
tls-verify: false
registry: ${{ vars.DOCKER_REGISTRY_HOST }}
username: ${{ vars.DOCKER_REGISTRY_USERNAME }}
password: ${{ vars.DOCKER_REGISTRY_PASSWORD }}
+5 -49
View File
@@ -2,62 +2,18 @@ name: "Build gradle"
description: "Build docker image with docker" description: "Build docker image with docker"
inputs: inputs:
image_name: # id of input target: # id of input
description: "Name of image" description: "Gradle target for build"
required: true required: true
tag: # id of input default: "build"
description: "Tag of image"
required: true
# outputs:
# random-number:
# description: "Random number"
# value: ${{ steps.random-number-generator.outputs.random-number }}
runs: runs:
using: "composite" using: "composite"
steps: steps:
- name: "Publish Image Name"
run: 'echo "Image name: $IMAGE_NAME"'
shell: bash
env:
IMAGE_NAME: ${{ inputs.image_name }}
- name: Setup Jvm - name: Setup Jvm
uses: actions/setup-java@v1 uses: actions/setup-java@v4
with: with:
java-version: 21 java-version: 21
distribution: "adopt" distribution: "adopt"
- name: "Building" - 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 }}:${{ inputs.tag }}
DOCKER_REGISTRY_HOST: ${{ vars.DOCKER_REGISTRY_HOST }}
DOCKER_HOST: unix:///run/podman/podman.sock
shell: bash shell: bash
run: "./gradlew -Pversion=${{ inputs.image_name }} clean buildDockerImage -Dorg.gradle.jvmargs=-Xmx4096M --parallel --no-daemon --no-watch-fs --stacktrace" run: './gradlew clean ${{ inputs.target }} -Pdisable-javadoc=true "-Pversion=${{ inputs.version }}" "-Pbinom.repo.user=${{ vars.BINOM_REPO_USER }}" "-Pbinom.repo.password=${{ vars.BINOM_REPO_PASSWORD }}" -Dorg.gradle.jvmargs=-Xmx4096M --parallel --no-daemon --no-watch-fs --stacktrace'
# - name: Build Docker Image
# uses: redhat-actions/buildah-build@v2
# with:
# image: ${{ vars.DOCKER_REGISTRY_HOST }}/${{ inputs.image_name }}
# tags: ${{ inputs.image_name }}
# oci: true
# containerfiles: |
# ./server/Dockerfile
- name: Push to Repository
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ inputs.image_name }}
tags: ${{ inputs.tag }}
registry: ${{ vars.DOCKER_REGISTRY_HOST }}
username: ${{ vars.DOCKER_REGISTRY_USERNAME }}
password: ${{ vars.DOCKER_REGISTRY_PASSWORD }}
# - name: Random Number Generator
# id: random-number-generator
# run: echo "random-number=$(echo $RANDOM)" >> $GITHUB_OUTPUT
# shell: bash
# - name: Set GitHub Path
# run: echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH
# shell: bash
# env:
# GITHUB_ACTION_PATH: ${{ github.action_path }}
+1 -1
View File
@@ -17,7 +17,7 @@ runs:
using: "composite" using: "composite"
steps: steps:
- name: "Install Helm" - name: "Install Helm"
uses: azure/setup-helm@v3 uses: azure/setup-helm@v4.3.0
- name: Update Helm version - name: Update Helm version
shell: bash shell: bash
run: | run: |
+2 -2
View File
@@ -10,7 +10,7 @@ runs:
using: "composite" using: "composite"
steps: steps:
- name: Setup Jvm - name: Setup Jvm
uses: actions/setup-java@v1 uses: actions/setup-java@v4
with: with:
java-version: 21 java-version: 21
distribution: "adopt" distribution: "adopt"
@@ -20,4 +20,4 @@ runs:
BINOM_REPO_URL: ${{ vars.BINOM_REPO_URL }} BINOM_REPO_URL: ${{ vars.BINOM_REPO_URL }}
BINOM_REPO_USER: ${{ vars.BINOM_REPO_USER }} BINOM_REPO_USER: ${{ vars.BINOM_REPO_USER }}
shell: bash shell: bash
run: "./gradlew -Pversion=${{ inputs.version }} publish -Dorg.gradle.jvmargs=-Xmx4096M --parallel --no-daemon --no-watch-fs --stacktrace" run: './gradlew -Pdisable-javadoc=true "-Pversion=${{ inputs.version }}" "-Pbinom.repo.user=${{ vars.BINOM_REPO_USER }}" "-Pbinom.repo.password=${{ vars.BINOM_REPO_PASSWORD }}" publish -Dorg.gradle.jvmargs=-Xmx4096M --parallel --no-daemon --no-watch-fs --stacktrace'