Skip to content

Commit

Permalink
all: Bump Golang minor versions in accordance with latest release. (#…
Browse files Browse the repository at this point in the history
…3693)

* Bump minor Golang version in CI in accordance w/ latest release (1.16.5,
  1.15.13)
* Also pin Docker `golang` images to the major version so this doesn't need to
  happen every time.

Co-authored-by: Bartek Nowotarski <[email protected]>
  • Loading branch information
Shaptic and bartekn committed Jun 16, 2021
1 parent 226d70a commit aaec655
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 22 deletions.
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ commands:
name: Download and install golang
command: |
sudo rm -rf /usr/local/go
wget https://dl.google.com/go/go1.16.3.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.16.3.linux-amd64.tar.gz
wget https://dl.google.com/go/go1.16.5.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.16.5.linux-amd64.tar.gz
# install_go_deps installs the go dependencies of the project.
install_go_deps:
Expand Down Expand Up @@ -241,7 +241,7 @@ jobs:
test_code_1_15:
working_directory: /go/src/github.com/stellar/go
docker:
- image: golang:1.15.11
- image: golang:1.15
environment:
GO111MODULE: "on"
PGHOST: localhost
Expand All @@ -261,7 +261,7 @@ jobs:
test_code_1_15_postgres10:
working_directory: /go/src/github.com/stellar/go
docker:
- image: golang:1.15.11
- image: golang:1.15
environment:
GO111MODULE: "on"
PGHOST: localhost
Expand All @@ -282,7 +282,7 @@ jobs:
test_code_1_16:
working_directory: /go/src/github.com/stellar/go
docker:
- image: golang:1.16.3
- image: golang:1.16
environment:
GO111MODULE: "on"
PGHOST: localhost
Expand All @@ -302,7 +302,7 @@ jobs:
test_code_1_16_postgres10:
working_directory: /go/src/github.com/stellar/go
docker:
- image: golang:1.16.3
- image: golang:1.16
environment:
GO111MODULE: "on"
PGHOST: localhost
Expand All @@ -325,7 +325,7 @@ jobs:
publish_artifacts:
working_directory: /go/src/github.com/stellar/go
docker:
- image: golang:1.16.3
- image: golang:1.16
steps:
- check_deprecations
- install_go_deps
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
go: [1.16.4]
go: [1.16.5]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand All @@ -29,7 +29,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
go: [1.16.4, 1.15.11]
go: [1.16.5, 1.15.13]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand All @@ -43,7 +43,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
go: [1.16.4, 1.15.11]
go: [1.16.5, 1.15.13]
pg: [9.6.5, 10]
runs-on: ${{ matrix.os }}
services:
Expand Down
2 changes: 1 addition & 1 deletion exp/services/recoverysigner/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16.3 as build
FROM golang:1.16 as build

ADD . /src/recoverysigner
WORKDIR /src/recoverysigner
Expand Down
2 changes: 1 addition & 1 deletion exp/services/webauth/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16.3 as build
FROM golang:1.16 as build

ADD . /src/webauth
WORKDIR /src/webauth
Expand Down
2 changes: 1 addition & 1 deletion exp/tools/dump-ledger-state/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN echo "host all all all trust" > /etc/postgresql/9.6/main/pg_hba.conf
# And add `listen_addresses` to `/etc/postgresql/9.6/main/postgresql.conf`
RUN echo "listen_addresses='*'" >> /etc/postgresql/9.6/main/postgresql.conf

RUN curl -sL https://storage.googleapis.com/golang/go1.16.3.linux-amd64.tar.gz | tar -C /usr/local -xz
RUN curl -sL https://storage.googleapis.com/golang/go1.16.5.linux-amd64.tar.gz | tar -C /usr/local -xz
RUN ln -s /usr/local/go/bin/go /usr/local/bin/go
WORKDIR /go/src/github.com/stellar/go
COPY go.mod go.sum ./
Expand Down
2 changes: 1 addition & 1 deletion services/friendbot/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16.3 as build
FROM golang:1.16 as build

ADD . /src/friendbot
WORKDIR /src/friendbot
Expand Down
2 changes: 1 addition & 1 deletion services/horizon/docker/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16.3 AS builder
FROM golang:1.16 AS builder

WORKDIR /go/src/github.com/stellar/go
COPY go.mod go.sum ./
Expand Down
4 changes: 2 additions & 2 deletions services/horizon/docker/verify-range/dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ echo "deb https://apt.stellar.org $(lsb_release -cs) stable" | sudo tee -a /etc/
apt-get update
apt-get install -y stellar-core=${STELLAR_CORE_VERSION}

wget https://dl.google.com/go/go1.16.3.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.16.3.linux-amd64.tar.gz
wget https://dl.google.com/go/go1.16.5.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.16.5.linux-amd64.tar.gz

# configure postgres
service postgresql start
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Change to Go version used in CI or rebuild with --build-arg.
ARG GO_IMAGE=golang:1.16.3
ARG GO_IMAGE=golang:1.16.5
FROM $GO_IMAGE

WORKDIR /go/src/github.com/stellar/go
Expand Down
2 changes: 1 addition & 1 deletion services/keystore/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16.3 as build
FROM golang:1.16.5 as build

ADD . /src/keystore
WORKDIR /src/keystore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16.3 as build
FROM golang:1.16.5 as build

ADD . /src/regulated-assets-approval-server
WORKDIR /src/regulated-assets-approval-server
Expand Down
2 changes: 1 addition & 1 deletion services/ticker/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16.3 as build
FROM golang:1.16.5 as build

ADD . /src/ticker
WORKDIR /src/ticker
Expand Down
2 changes: 1 addition & 1 deletion services/ticker/docker/Dockerfile-dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16.3-stretch as build
FROM golang:1.16.5-stretch as build

LABEL maintainer="Alex Cordeiro <[email protected]>"

Expand Down

0 comments on commit aaec655

Please sign in to comment.