Skip to content

Commit 8a68709

Browse files
committed
Merge branch 'release/v1.5.1'
2 parents 0998c40 + 022d6b1 commit 8a68709

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@master
15-
- uses: actions/setup-go@v1
15+
- uses: actions/setup-go@v2
1616
with:
17-
go-version: '1.13.5'
17+
go-version: '1.15'
1818

1919
- name: Build
2020
run: CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o github-actions-exporter

Dockerfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM golang:1.15 as builder
2+
3+
4+
WORKDIR /app
5+
COPY . .
6+
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o bin/app
7+
8+
FROM alpine:latest as release
9+
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
10+
COPY --from=builder /app/bin/app .
11+
CMD ["./app"]

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"github-actions-exporter/metrics"
2020
)
2121

22-
var version = "v1.5"
22+
var version = "v1.5.1"
2323

2424
// main init configuration
2525
func main() {

0 commit comments

Comments
 (0)