Create action.yml
This commit is contained in:
parent
d34a0ffc51
commit
092cef201c
45
deploy/action.yml
Normal file
45
deploy/action.yml
Normal file
@ -0,0 +1,45 @@
|
||||
name: "Build gradle"
|
||||
description: "Build docker image with docker"
|
||||
|
||||
inputs:
|
||||
image_name: # id of input
|
||||
description: "Name of image"
|
||||
required: true
|
||||
# outputs:
|
||||
# random-number:
|
||||
# description: "Random number"
|
||||
# value: ${{ steps.random-number-generator.outputs.random-number }}
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Set Greeting
|
||||
run: 'echo "Image name: $IMAGE_NAME"'
|
||||
shell: bash
|
||||
env:
|
||||
IMAGE_NAME: ${{ inputs.image_name }}
|
||||
- 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
|
||||
shell: bash
|
||||
run: "./gradlew -Pversion=${{ gitea.ref_name }} pushDockerImage -Dorg.gradle.jvmargs=-Xmx4096M --parallel --no-daemon --no-watch-fs --stacktrace"
|
||||
|
||||
# - 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 }}
|
||||
Loading…
x
Reference in New Issue
Block a user