Skip to content

Commit c36106a

Browse files
author
marcel
committed
update
1 parent d362e69 commit c36106a

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
push:
3+
branches: [ main ]
4+
pull_request:
5+
branches: [ main ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- name: Set up go
14+
uses: actions/setup-go@v3
15+
16+
- name: Build container image /w kaniko
17+
uses: aevea/action-kaniko@master
18+
with:
19+
image: waitfor
20+
tag: latest
21+
registry: ghcr.io
22+
password: ${{secrets.CI_REGISTRY_PASSWORD}}

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Builder-Stage
2+
FROM golang:1.25.1-alpine3.22 AS builder
3+
WORKDIR /app
4+
5+
COPY go.mod go.sum ./
6+
RUN go mod download
7+
8+
COPY . .
9+
RUN go build -o waitfor
10+
11+
# Runner
12+
FROM alpine:3.22.1
13+
COPY --from=builder /app/waitfor /usr/local/bin/waitfor
14+
15+
ENTRYPOINT ["waitfor"]

0 commit comments

Comments
 (0)