Files
devops/docker/action.yaml
T
2026-04-15 16:27:14 +03:00

29 lines
734 B
YAML

name: "Clone OTP"
description: "Build docker image with docker"
inputs:
image-name:
description: "Name of image"
required: true
tags:
description: "Tags of image"
required: true
#FROM bellsoft/liberica-openjdk-alpine:21.0.6-10
runs:
using: "composite"
steps:
- name: "Config gradle"
shell: bash
run: |
cat > ./Dockerfile << 'EOF'
FROM eclipse-temurin:21-jre-alpine
COPY /build/libs/*.jar /app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]
EOF
- name: Build Docker Image
uses: https://git.binom.pw/subochev/devops/build-docker@main
with:
image_name: ${{ inputs.image-name }}
tags: latest ${{ inputs.tags }}