зеркало из https://github.com/getsops/sops.git
build: update Go to 1.20
This updates Go used for builds to 1.20, including an update of Alpine to 3.17. Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
Родитель
4bef0297cb
Коммит
83f459b1ad
|
@ -28,10 +28,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: sudo apt-get update && sudo apt-get install git -y
|
run: sudo apt-get update && sudo apt-get install git -y
|
||||||
- name: Set up Go 1.19
|
- name: Set up Go 1.20
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: 1.19
|
go-version: '1.20'
|
||||||
id: go
|
id: go
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
|
@ -15,10 +15,10 @@ jobs:
|
||||||
run: sudo apt-get update && sudo apt-get install git ruby rpm -y
|
run: sudo apt-get update && sudo apt-get install git ruby rpm -y
|
||||||
- name: Install fpm
|
- name: Install fpm
|
||||||
run: gem install fpm || sudo gem install fpm
|
run: gem install fpm || sudo gem install fpm
|
||||||
- name: Set up Go 1.19
|
- name: Set up Go 1.20
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.19
|
go-version: '1.20'
|
||||||
id: go
|
id: go
|
||||||
- name: Check out code into the Go module directory
|
- name: Check out code into the Go module directory
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:1.19
|
FROM golang:1.20
|
||||||
|
|
||||||
COPY . /go/src/go.mozilla.org/sops
|
COPY . /go/src/go.mozilla.org/sops
|
||||||
WORKDIR /go/src/go.mozilla.org/sops
|
WORKDIR /go/src/go.mozilla.org/sops
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FROM golang:1.19-alpine3.16 AS builder
|
FROM golang:1.20-alpine3.17 AS builder
|
||||||
|
|
||||||
RUN apk --no-cache add make
|
RUN apk --no-cache add make
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ WORKDIR /go/src/go.mozilla.org/sops
|
||||||
RUN CGO_ENABLED=1 make install
|
RUN CGO_ENABLED=1 make install
|
||||||
|
|
||||||
|
|
||||||
FROM alpine:3.16
|
FROM alpine:3.17
|
||||||
|
|
||||||
RUN apk --no-cache add \
|
RUN apk --no-cache add \
|
||||||
vim ca-certificates
|
vim ca-certificates
|
||||||
|
|
Загрузка…
Ссылка в новой задаче