Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/validate_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
with:
persist-credentials: false
- uses: actions/setup-go@v4
- uses: actions/setup-go@19bb51245e9c80abacb2e91cc42b33fa478b8639 # v4
with:
go-version: '1.21'
cache: false
Expand All @@ -29,11 +29,11 @@ jobs:
name: Unit-Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
with:
persist-credentials: false
- name: Set up Go 1.21
uses: actions/setup-go@v4
uses: actions/setup-go@19bb51245e9c80abacb2e91cc42b33fa478b8639 # v4
with:
go-version: 1.21
- name: Unit Tests
Expand All @@ -42,11 +42,11 @@ jobs:
name: Build Binaries
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
with:
persist-credentials: false
- name: Set up Go 1.21
uses: actions/setup-go@v4
uses: actions/setup-go@19bb51245e9c80abacb2e91cc42b33fa478b8639 # v4
with:
go-version: 1.21
- name: Build All
Expand Down
4 changes: 2 additions & 2 deletions cmd/benchtool/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM golang:1.22 as build
FROM golang:1.22@sha256:1cf6c45ba39db9fd6db16922041d074a63c935556a05c5ccb62d181034df7f02 as build
ARG GOARCH="amd64"
COPY . /build_dir
WORKDIR /build_dir
ENV GOPROXY=https://proxy.golang.org
RUN make clean && make benchtool

FROM alpine:3.14
FROM alpine:3.14@sha256:0f2d5c38dd7a4f4f733e688e3a6733cb5ab1ac6e3cb4603a5dd564e5bfb80eed
RUN apk add --update --no-cache ca-certificates
COPY --from=build /build_dir/cmd/benchtool/benchtool /usr/bin/benchtool
EXPOSE 80
Expand Down
2 changes: 1 addition & 1 deletion cmd/benchtool/GR.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.14
FROM alpine:3.14@sha256:0f2d5c38dd7a4f4f733e688e3a6733cb5ab1ac6e3cb4603a5dd564e5bfb80eed
RUN apk add --update --no-cache ca-certificates
COPY benchtool /usr/bin/benchtool
EXPOSE 80
Expand Down
4 changes: 2 additions & 2 deletions cmd/cortextool/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM golang:1.22 as build
FROM golang:1.22@sha256:1cf6c45ba39db9fd6db16922041d074a63c935556a05c5ccb62d181034df7f02 as build
ARG GOARCH="amd64"
COPY . /build_dir
WORKDIR /build_dir
ENV GOPROXY=https://proxy.golang.org
RUN make clean && make cortextool

FROM alpine:3.14
FROM alpine:3.14@sha256:0f2d5c38dd7a4f4f733e688e3a6733cb5ab1ac6e3cb4603a5dd564e5bfb80eed
RUN apk add --update --no-cache ca-certificates tzdata
COPY --from=build /build_dir/cmd/cortextool/cortextool /usr/bin/cortextool
EXPOSE 80
Expand Down
2 changes: 1 addition & 1 deletion cmd/cortextool/GR.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.14
FROM alpine:3.14@sha256:0f2d5c38dd7a4f4f733e688e3a6733cb5ab1ac6e3cb4603a5dd564e5bfb80eed
RUN apk add --update --no-cache ca-certificates
COPY cortextool /usr/bin/cortextool
EXPOSE 80
Expand Down
4 changes: 2 additions & 2 deletions cmd/e2ealerting/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM golang:1.22 as build
FROM golang:1.22@sha256:1cf6c45ba39db9fd6db16922041d074a63c935556a05c5ccb62d181034df7f02 as build
ARG GOARCH="amd64"
COPY . /build_dir
WORKDIR /build_dir
RUN make clean && make e2ealerting

FROM alpine:3.14
FROM alpine:3.14@sha256:0f2d5c38dd7a4f4f733e688e3a6733cb5ab1ac6e3cb4603a5dd564e5bfb80eed
RUN apk add --update --no-cache ca-certificates
COPY --from=build /build_dir/cmd/e2ealerting/e2ealerting /usr/bin/e2ealerting
EXPOSE 80
Expand Down
4 changes: 2 additions & 2 deletions cmd/logtool/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM golang:1.22 as build
FROM golang:1.22@sha256:1cf6c45ba39db9fd6db16922041d074a63c935556a05c5ccb62d181034df7f02 as build
ARG GOARCH="amd64"
COPY . /build_dir
WORKDIR /build_dir
ENV GOPROXY=https://proxy.golang.org
RUN make clean && make logtool

FROM alpine:3.14
FROM alpine:3.14@sha256:0f2d5c38dd7a4f4f733e688e3a6733cb5ab1ac6e3cb4603a5dd564e5bfb80eed
RUN apk add --update --no-cache ca-certificates
COPY --from=build /build_dir/cmd/logtool/logtool /usr/bin/logtool
EXPOSE 80
Expand Down
Loading