mirror of
https://github.com/lukaszraczylo/semver-generator.git
synced 2026-07-07 04:04:39 +00:00
Prepare for the actions release.
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
# syntax=docker/dockerfile:1.2.1-labs
|
||||||
|
|
||||||
|
FROM golang:1-alpine as baseimg
|
||||||
|
|
||||||
|
RUN apk add make
|
||||||
|
WORKDIR /go/src/app
|
||||||
|
ENV GO111MODULE=on CGO_ENABLED=1 GOOS=linux
|
||||||
|
COPY . /go/src/app/
|
||||||
|
RUN make
|
||||||
|
|
||||||
|
FROM alpine:latest
|
||||||
|
RUN apk add --no-cache ca-certificates
|
||||||
|
WORKDIR /go/src/app
|
||||||
|
COPY --from=baseimg /go/src/app/semver-gen .
|
||||||
|
COPY --from=baseimg /go/src/app/config-release.yaml config.yaml
|
||||||
|
COPY entrypoint.sh entrypoint.sh
|
||||||
|
ENTRYPOINT ["./entrypoint.sh"]
|
||||||
+1
-2
@@ -17,9 +17,8 @@ outputs:
|
|||||||
description: 'Calculated semantic version'
|
description: 'Calculated semantic version'
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
image: 'Dockerfile'
|
image: 'ghcr.io/lukaszraczylo/semver-generator:latest'
|
||||||
args:
|
args:
|
||||||
- generate
|
|
||||||
- ${{ inputs.config_file }}
|
- ${{ inputs.config_file }}
|
||||||
- ${{ inputs.repository_url }}
|
- ${{ inputs.repository_url }}
|
||||||
- ${{ inputs.repository_local }}
|
- ${{ inputs.repository_local }}
|
||||||
Reference in New Issue
Block a user