29 lines
676 B
YAML
29 lines
676 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
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: "Config gradle"
|
|
shell: bash
|
|
run: |
|
|
cat > ./Dockerfile << 'EOF'
|
|
FROM openjdk:21-jre-slim
|
|
|
|
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 }} |