Skip to content

Commit

Permalink
update to go 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandro-sorint committed Jun 3, 2022
1 parent 7741dcd commit 5ba4649
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .agola/config.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ local task_build_go(version, arch) = {
{ type: 'run', command: 'make' },
{ type: 'save_cache', key: 'cache-sum-{{ md5sum "go.sum" }}', contents: [{ source_dir: '/go/pkg/mod/cache' }] },
{ type: 'save_cache', key: 'cache-date-{{ year }}-{{ month }}-{{ day }}', contents: [{ source_dir: '/go/pkg/mod/cache' }] },
{ type: 'run', name: 'install golangci-lint', command: 'curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.44.2' },
{ type: 'run', name: 'install golangci-lint', command: 'curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.45.2' },
{ type: 'run', command: 'golangci-lint run --deadline 5m' },
{ type: 'run', name: 'build docker/k8s drivers tests binary', command: 'CGO_ENABLED=0 go test -c ./internal/services/executor/driver -o ./bin/docker-tests' },
{ type: 'run', name: 'build integration tests binary', command: 'go test -tags "sqlite_unlock_notify" -c ./tests -o ./bin/integration-tests' },
Expand Down Expand Up @@ -107,7 +107,7 @@ local task_build_push_images(name, target, push) =
[
task_build_go(version, arch),
]
for version in ['1.15', '1.16']
for version in ['1.17', '1.18']
for arch in ['amd64' /*, 'arm64' */]
]) + [
{
Expand All @@ -118,7 +118,7 @@ local task_build_push_images(name, target, push) =
{ type: 'run', command: 'SKIP_K8S_TESTS=1 AGOLA_TOOLBOX_PATH="./bin" ./bin/docker-tests -test.parallel 1 -test.v' },
],
depends: [
'build go 1.16 amd64',
'build go 1.18 amd64',
],
},
{
Expand All @@ -140,7 +140,7 @@ local task_build_push_images(name, target, push) =
{ type: 'run', name: 'integration tests', command: 'AGOLA_BIN_DIR="./bin" GITEA_PATH=${PWD}/bin/gitea DOCKER_BRIDGE_ADDRESS="172.18.0.1" ./bin/integration-tests -test.parallel 1 -test.v' },
],
depends: [
'build go 1.16 amd64',
'build go 1.18 amd64',
],
},
{
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ FROM $AGOLAWEB_IMAGE as agola-web
#######

# base build image
FROM golang:1.16-buster AS build_base
FROM golang:1.18-buster AS build_base

WORKDIR /agola

Expand Down

0 comments on commit 5ba4649

Please sign in to comment.