Skip to content

Commit

Permalink
chore: Update Golang builder to 1.16.5 (argoproj#6653)
Browse files Browse the repository at this point in the history
* chore: Update Golang builder to 1.16.5

Signed-off-by: jannfis <[email protected]>

* Use variables to refer to Go version in workflows

Signed-off-by: jannfis <[email protected]>
  • Loading branch information
jannfis authored Jul 8, 2021
1 parent b893ecc commit 8030f42
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 12 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
branches:
- 'master'

env:
# Golang version to use across CI steps
GOLANG_VERSION: '1.16.5'

jobs:
build-docker:
name: Build Docker image
Expand All @@ -30,7 +34,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v1
with:
go-version: '1.16.2'
go-version: ${{ env.GOLANG_VERSION }}
- name: Download all Go modules
run: |
go mod download
Expand All @@ -48,7 +52,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v1
with:
go-version: '1.16.2'
go-version: ${{ env.GOLANG_VERSION }}
- name: Restore go build cache
uses: actions/cache@v1
with:
Expand Down Expand Up @@ -87,7 +91,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v1
with:
go-version: '1.16.2'
go-version: ${{ env.GOLANG_VERSION }}
- name: Install required packages
run: |
sudo apt-get install git -y
Expand Down Expand Up @@ -147,7 +151,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v1
with:
go-version: '1.16.2'
go-version: ${{ env.GOLANG_VERSION }}
- name: Install required packages
run: |
sudo apt-get install git -y
Expand Down Expand Up @@ -196,7 +200,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v1
with:
go-version: '1.16.2'
go-version: ${{ env.GOLANG_VERSION }}
- name: Create symlink in GOPATH
run: |
mkdir -p ~/go/src/github.com/argoproj
Expand Down Expand Up @@ -355,7 +359,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v1
with:
go-version: '1.16.2'
go-version: ${{ env.GOLANG_VERSION }}
- name: GH actions workaround - Kill XSP4 process
run: |
sudo pkill mono || true
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- master

env:
GOLANG_VERSION: '1.16.5'

jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -13,7 +16,7 @@ jobs:
steps:
- uses: actions/setup-go@v1
with:
go-version: '1.16.4'
go-version: ${{ env.GOLANG_VERSION }}
- uses: actions/checkout@master
with:
path: src/github.com/argoproj/argo-cd
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
- '!release-v1.1*'
- '!release-v1.0*'
- '!release-v0*'

env:
GOLANG_VERSION: '1.16.5'

jobs:
prepare-release:
name: Perform automatic release on trigger ${{ github.ref }}
Expand Down Expand Up @@ -139,7 +143,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v1
with:
go-version: '1.16.4'
go-version: ${{ env.GOLANG_VERSION }}

- name: Setup Git author information
run: |
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARG BASE_IMAGE=docker.io/library/ubuntu:21.04
# Initial stage which pulls prepares build dependencies and CLI tooling we need for our final image
# Also used as the image in CI jobs so needs all dependencies
####################################################################################################
FROM docker.io/library/golang:1.16.4 as builder
FROM docker.io/library/golang:1.16.5 as builder

RUN echo 'deb http://deb.debian.org/debian buster-backports main' >> /etc/apt/sources.list

Expand Down Expand Up @@ -102,7 +102,7 @@ RUN NODE_ENV='production' NODE_ONLINE_ENV='online' yarn build
####################################################################################################
# Argo CD Build stage which performs the actual build of Argo CD binaries
####################################################################################################
FROM golang:1.16.0 as argocd-build
FROM golang:1.16.5 as argocd-build

WORKDIR /go/src/github.com/argoproj/argo-cd

Expand Down
2 changes: 1 addition & 1 deletion test/container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM redis:6.2.4 as redis

FROM node:12.18.4 as node

FROM golang:1.16.4 as golang
FROM golang:1.16.5 as golang

FROM registry:2.7.1 as registry

Expand Down
2 changes: 1 addition & 1 deletion test/remote/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16.2 AS go
FROM golang:1.16.5 AS go

RUN go get github.com/mattn/goreman && \
go get github.com/kisielk/godepgraph
Expand Down

0 comments on commit 8030f42

Please sign in to comment.