Pin golang container to minor release (#3696)

This commit is contained in:
Robert Kaussow 2024-05-13 15:27:17 +02:00 committed by GitHub
parent 082a51b337
commit da0658a531
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 7 additions and 12 deletions

View file

@ -9,7 +9,7 @@ tasks:
WOODPECKER_DEV_WWW_PROXY: http://localhost:8010
WOODPECKER_BACKEND_DOCKER_NETWORK: ci_default
init: |
GO_VERSION=1.21.5
GO_VERSION=1.22
rm -rf ~/go
curl -fsSL https://dl.google.com/go/go$GO_VERSION.linux-amd64.tar.gz | tar xzs -C ~/
go mod tidy

View file

@ -2,10 +2,9 @@ when:
event: tag
variables:
- &golang_image 'docker.io/golang:1.22.2'
- &golang_image 'docker.io/golang:1.22'
- &node_image 'docker.io/node:22-alpine'
- &xgo_image 'docker.io/techknowlogick/xgo:go-1.22.2'
- &xgo_version 'go-1.21.2'
- &xgo_image 'docker.io/techknowlogick/xgo:go-1.22.x'
steps:
build-web:
@ -34,7 +33,6 @@ steps:
environment:
PLATFORMS: linux|arm64/v8;linux|amd64;windows|amd64
TAGS: bindata sqlite sqlite_unlock_notify netgo
XGO_VERSION: *xgo_version
TARGZ: '1'
build-tarball:

View file

@ -1,8 +1,7 @@
variables:
- &golang_image 'docker.io/golang:1.22.2'
- &golang_image 'docker.io/golang:1.22'
- &node_image 'docker.io/node:22-alpine'
- &xgo_image 'docker.io/techknowlogick/xgo:go-1.22.2'
- &xgo_version 'go-1.21.2'
- &xgo_image 'docker.io/techknowlogick/xgo:go-1.22.x'
- &buildx_plugin 'docker.io/woodpeckerci/plugin-docker-buildx:3.2.1'
- &platforms_release 'linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/386,linux/amd64,linux/ppc64le,linux/riscv64,linux/s390x,freebsd/arm64,freebsd/amd64,openbsd/arm64,openbsd/amd64'
- &platforms_server 'linux/arm/v7,linux/arm64/v8,linux/amd64,linux/ppc64le,linux/riscv64'
@ -98,7 +97,6 @@ steps:
environment:
PLATFORMS: linux|amd64
TAGS: bindata sqlite sqlite_unlock_notify netgo
XGO_VERSION: *xgo_version
when:
- event: pull_request
evaluate: 'CI_COMMIT_PULL_REQUEST_LABELS contains "build_pr_images"'
@ -121,7 +119,6 @@ steps:
environment:
PLATFORMS: linux|arm/v7;linux|arm64/v8;linux|amd64;linux|ppc64le;linux|riscv64
TAGS: bindata sqlite sqlite_unlock_notify netgo
XGO_VERSION: *xgo_version
when:
branch:
- ${CI_REPO_DEFAULT_BRANCH}

View file

@ -1,5 +1,5 @@
variables:
- &golang_image 'docker.io/golang:1.21.5'
- &golang_image 'docker.io/golang:1.22'
- &node_image 'docker.io/node:21-alpine'
- &alpine_image 'docker.io/alpine:3.19'
- path: &when_path

View file

@ -1,5 +1,5 @@
variables:
- &golang_image 'docker.io/golang:1.21.5'
- &golang_image 'docker.io/golang:1.22'
- &when
- path: &when_path # related config files
- '.woodpecker/test.yaml'