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