We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2237b5 commit 56f214eCopy full SHA for 56f214e
2 files changed
.github/workflows/docker.yml
@@ -0,0 +1,18 @@
1
+name: Build & Push to container registry
2
+
3
+on:
4
+ release:
5
+ types: [created]
6
+ push:
7
+ branches:
8
+ - main
9
+ pull_request:
10
11
+ - "**"
12
+ paths:
13
+ - "Dockerfile"
14
15
+jobs:
16
+ docker:
17
+ uses: nezuchan/workflows/.github/workflows/docker-build.yml@main
18
+ secrets: inherit
Dockerfile
@@ -0,0 +1,23 @@
+FROM golang:1.21-alpine as build-stage
+WORKDIR /tmp/build
+COPY . .
+# Build the project
+RUN go build .
+FROM alpine:3
+LABEL name "Invoice Creator"
+LABEL maintainer "KagChi"
+WORKDIR /app
+# Install needed deps
+RUN apk add --no-cache tini
19
20
+COPY --from=build-stage /tmp/build/invoice-creator main
21
22
+ENTRYPOINT ["tini", "--"]
23
+CMD ["/app/main"]
0 commit comments