mirror of
https://github.com/gomods/athens
synced 2026-02-03 12:10:32 +00:00
upgrade go version to 1.19 (#1814)
* upgrade go version to 1.19 * update base image
This commit is contained in:
+2
-2
@@ -4,7 +4,7 @@ name: default
|
||||
|
||||
steps:
|
||||
- name: download-dependencies
|
||||
image: golang:1.18
|
||||
image: golang:1.19
|
||||
commands:
|
||||
# wait for services to be ready.
|
||||
# - cd scripts/liveness_probe
|
||||
@@ -21,7 +21,7 @@ steps:
|
||||
path: /go
|
||||
|
||||
- name: build
|
||||
image: golang:1.18
|
||||
image: golang:1.19
|
||||
commands:
|
||||
|
||||
# build
|
||||
|
||||
@@ -14,7 +14,7 @@ jobs:
|
||||
- name: setup-go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.18
|
||||
go-version: 1.19
|
||||
- name: capture current date
|
||||
id: date
|
||||
run: echo "::set-output name=date::$(date -u '+%Y-%m-%d-%H:%M:%S-%Z')"
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
ARG GOLANG_VERSION=1.18
|
||||
ARG GOLANG_VERSION=1.19
|
||||
FROM golang:$GOLANG_VERSION
|
||||
|
||||
RUN echo $GOLANG_VERSION
|
||||
|
||||
@@ -2,7 +2,7 @@ VERSION = "unset"
|
||||
DATE=$(shell date -u +%Y-%m-%d-%H:%M:%S-%Z)
|
||||
|
||||
ifndef GOLANG_VERSION
|
||||
override GOLANG_VERSION = 1.18
|
||||
override GOLANG_VERSION = 1.19
|
||||
endif
|
||||
|
||||
.PHONY: build
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ environment:
|
||||
GOPROXY: https://proxy.golang.org
|
||||
SKIP_UNTIL_113: true
|
||||
|
||||
stack: go 1.18
|
||||
stack: go 1.19
|
||||
|
||||
test_script:
|
||||
- go version
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# You can override the Go version used to build the image.
|
||||
# See project Makefile if using make.
|
||||
# See docker --build-arg if building directly.
|
||||
ARG GOLANG_VERSION=1.18
|
||||
ARG GOLANG_VERSION=1.19
|
||||
ARG ALPINE_VERSION=3.15
|
||||
|
||||
FROM golang:${GOLANG_VERSION}-alpine AS builder
|
||||
|
||||
+3
-3
@@ -5,7 +5,7 @@ services:
|
||||
context: .
|
||||
dockerfile: cmd/proxy/Dockerfile
|
||||
args:
|
||||
GOLANG_VERSION: 1.18
|
||||
GOLANG_VERSION: 1.19
|
||||
environment:
|
||||
- ATHENS_MONGO_STORAGE_URL=mongodb://mongo:27017
|
||||
- TIMEOUT=20 # in case the mongo dependency takes longer to start up
|
||||
@@ -20,7 +20,7 @@ services:
|
||||
context: .
|
||||
dockerfile: Dockerfile.test
|
||||
args:
|
||||
GOLANG_VERSION: 1.18
|
||||
GOLANG_VERSION: 1.19
|
||||
command: ["./scripts/test_unit.sh"]
|
||||
environment:
|
||||
- GO_ENV=test
|
||||
@@ -36,7 +36,7 @@ services:
|
||||
context: .
|
||||
dockerfile: Dockerfile.test
|
||||
args:
|
||||
GOLANG_VERSION: 1.18
|
||||
GOLANG_VERSION: 1.19
|
||||
command: ["./scripts/test_e2e.sh"]
|
||||
azurite:
|
||||
image: arafato/azurite:2.6.5
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module github.com/gomods/athens
|
||||
|
||||
go 1.18
|
||||
go 1.19
|
||||
|
||||
require (
|
||||
cloud.google.com/go/storage v1.20.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM golang:1.18-stretch
|
||||
FROM golang:1.19-bullseye
|
||||
|
||||
WORKDIR /tmp
|
||||
|
||||
|
||||
Reference in New Issue
Block a user