File tree Expand file tree Collapse file tree 23 files changed +1227
-1104
lines changed
Expand file tree Collapse file tree 23 files changed +1227
-1104
lines changed Original file line number Diff line number Diff line change 1+ name : build clients
2+
3+ on :
4+ pull_request :
5+ branches : [main]
6+ paths :
7+ - " src/**"
8+
9+ jobs :
10+ # test locally with: `act -s GITHUB_TOKEN=$(gh auth token) --env github.actor=$USER`
11+ # get 'act': https://nektosact.com/installation/index.html
12+ build-clients :
13+ name : Build clients
14+ runs-on : ubuntu-latest
15+ permissions :
16+ contents : read
17+ steps :
18+ - name : Install Task
19+ uses : arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v2.0.0
20+ with :
21+ version : 3.x
22+ repo-token : ${{ secrets.GITHUB_TOKEN }}
23+ - name : Checkout Code
24+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
25+ - name : run task clients:build
26+ run : task clients:build
Original file line number Diff line number Diff line change 3131 version : 3.x
3232 repo-token : ${{ secrets.GITHUB_TOKEN }}
3333 - name : Checkout Code
34- uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
34+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3535 - name : Do some linting
3636 run : task code:lint
Original file line number Diff line number Diff line change 2323 version : 3.x
2424 repo-token : ${{ secrets.GITHUB_TOKEN }}
2525 - name : Checkout Code
26- uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
26+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2727 - name : Build image
2828 run : task clients:build-dice-go
2929 - name : Login to GitHub Container Registry
Original file line number Diff line number Diff line change 2323 version : 3.x
2424 repo-token : ${{ secrets.GITHUB_TOKEN }}
2525 - name : Checkout Code
26- uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
26+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2727 - name : Build image
2828 run : task clients:build-dice-java
2929 - name : Login to GitHub Container Registry
Original file line number Diff line number Diff line change 2323 version : 3.x
2424 repo-token : ${{ secrets.GITHUB_TOKEN }}
2525 - name : Checkout Code
26- uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
26+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2727 - name : Build image
2828 run : task clients:build-loggen-go
2929 - name : Login to GitHub Container Registry
Original file line number Diff line number Diff line change 2323 version : 3.x
2424 repo-token : ${{ secrets.GITHUB_TOKEN }}
2525 - name : Checkout Code
26- uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
26+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2727 - name : Build image
2828 run : task clients:build-recommendation
2929 - name : Login to GitHub Container Registry
Original file line number Diff line number Diff line change 2525 version : 3.x
2626 repo-token : ${{ secrets.GITHUB_TOKEN }}
2727 - name : Checkout Code
28- uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
28+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2929 - name : Check spelling
3030 run : task code:spellcheck
Original file line number Diff line number Diff line change 11# --- Build Stage ---
2- FROM golang:1.25-bookworm AS builder
2+ FROM golang:1.26-alpine AS builder
33# build the application
44WORKDIR /usr/src/app/
55# let's create separate layers for dependencies and source code
@@ -10,7 +10,7 @@ COPY main.go main.go
1010RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -ldflags "-s -w" -o dice-go main.go
1111
1212# --- Run Stage ---
13- FROM gcr.io/distroless/static-debian12 :nonroot
13+ FROM gcr.io/distroless/static-debian13 :nonroot
1414
1515ARG REST_PORT=8081
1616ENV REST_PORT=${REST_PORT}
You can’t perform that action at this time.
0 commit comments