Update Go in CI and busybox to 1.35

This commit is contained in:
Matthias Loibl 2022-06-22 16:26:42 +02:00
parent d3d7715750
commit 153f48f7c2
No known key found for this signature in database
GPG key ID: 78A796CA74CA38BA
4 changed files with 63 additions and 88 deletions

View file

@ -39,10 +39,9 @@
], ],
}, },
build('1.11'), build('1.16'),
build('1.12'), build('1.17'),
build('1.13'), build('1.18'),
build('1.14-rc'),
golang() { golang() {
name: 'generate', name: 'generate',

View file

@ -1,99 +1,75 @@
---
kind: pipeline kind: pipeline
name: default name: default
platform: platform:
os: linux
arch: amd64 arch: amd64
os: linux
steps: steps:
- name: gomod - commands:
pull: always
image: golang:latest
commands:
- go mod vendor - go mod vendor
- git diff --exit-code - git diff --exit-code
environment: environment:
CGO_ENABLED: 0 CGO_ENABLED: "0"
GO111MODULE: on GO111MODULE: "on"
when:
event:
exclude:
- tag
- name: build-1.11
pull: always
image: golang:1.11
commands:
- make build
- make test
- make test-integration
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
exclude:
- tag
- name: build-1.12
pull: always
image: golang:1.12
commands:
- make build
- make test
- make test-integration
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
exclude:
- tag
- name: build-1.13
pull: always
image: golang:1.13
commands:
- make build
- make test
- make test-integration
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
exclude:
- tag
- name: build-1.14-rc
pull: always
image: golang:1.14-rc
commands:
- make build
- make test
- make test-integration
environment:
CGO_ENABLED: 0
GO111MODULE: on
when:
event:
exclude:
- tag
- name: generate
pull: always
image: golang:latest image: golang:latest
commands: name: gomod
pull: always
when:
event:
exclude:
- tag
- commands:
- make build
- make test
- make test-integration
environment:
CGO_ENABLED: "0"
GO111MODULE: "on"
image: golang:1.16
name: build-1.16
pull: always
when:
event:
exclude:
- tag
- commands:
- make build
- make test
- make test-integration
environment:
CGO_ENABLED: "0"
GO111MODULE: "on"
image: golang:1.17
name: build-1.17
pull: always
when:
event:
exclude:
- tag
- commands:
- make build
- make test
- make test-integration
environment:
CGO_ENABLED: "0"
GO111MODULE: "on"
image: golang:1.18
name: build-1.18
pull: always
when:
event:
exclude:
- tag
- commands:
- make check-license - make check-license
- make generate - make generate
- git diff --exit-code - git diff --exit-code
environment: environment:
CGO_ENABLED: 0 CGO_ENABLED: "0"
GO111MODULE: on GO111MODULE: "on"
image: golang:latest
name: generate
pull: always
when: when:
event: event:
exclude: exclude:
- tag - tag
...

View file

@ -1,4 +1,4 @@
FROM busybox:1.33.0 FROM busybox:1.35.0
COPY _output/linux/amd64/jb / COPY _output/linux/amd64/jb /

View file

@ -51,7 +51,7 @@ check-license:
@./scripts/check_license.sh @./scripts/check_license.sh
embedmd: embedmd:
pushd /tmp && GO111MODULES=on go get github.com/campoy/embedmd && popd pushd /tmp && go install github.com/campoy/embedmd@latest && popd
# Other # Other
clean: clean: