mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
chore: update Go to 1.20.5 (#7877)
This commit is contained in:
2
.github/actions/setup-go/action.yaml
vendored
2
.github/actions/setup-go/action.yaml
vendored
@ -7,7 +7,7 @@ runs:
|
|||||||
- uses: buildjet/setup-go@v4
|
- uses: buildjet/setup-go@v4
|
||||||
with:
|
with:
|
||||||
cache: true
|
cache: true
|
||||||
go-version: "~1.20"
|
go-version: "1.20.5"
|
||||||
- name: Install gotestsum
|
- name: Install gotestsum
|
||||||
uses: jaxxstorm/action-install-gh-release@v1.10.0
|
uses: jaxxstorm/action-install-gh-release@v1.10.0
|
||||||
with:
|
with:
|
||||||
|
11
.github/workflows/release.yaml
vendored
11
.github/workflows/release.yaml
vendored
@ -6,10 +6,6 @@ on:
|
|||||||
- "v*"
|
- "v*"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
go_version:
|
|
||||||
description: "Go version to use for building."
|
|
||||||
required: false
|
|
||||||
default: "1.20.4"
|
|
||||||
dry_run:
|
dry_run:
|
||||||
description: Perform a dry-run release (devel). Note that ref must be an annotated tag when run without dry-run.
|
description: Perform a dry-run release (devel). Note that ref must be an annotated tag when run without dry-run.
|
||||||
type: boolean
|
type: boolean
|
||||||
@ -35,7 +31,7 @@ env:
|
|||||||
# For some reason, setup-go won't actually pick up a new patch version if
|
# For some reason, setup-go won't actually pick up a new patch version if
|
||||||
# it has an old one cached. We need to manually specify the versions so we
|
# it has an old one cached. We need to manually specify the versions so we
|
||||||
# can get the latest release. Never use "~1.xx" here!
|
# can get the latest release. Never use "~1.xx" here!
|
||||||
CODER_GO_VERSION: "1.20.4"
|
CODER_GO_VERSION: "1.20.5"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
@ -98,10 +94,7 @@ jobs:
|
|||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- uses: buildjet/setup-go@v4
|
- uses: ./.github/actions/setup-go
|
||||||
with:
|
|
||||||
go-version: ${{ env.CODER_GO_VERSION }}
|
|
||||||
cache: true
|
|
||||||
|
|
||||||
- name: Cache Node
|
- name: Cache Node
|
||||||
id: cache-node
|
id: cache-node
|
||||||
|
12
.github/workflows/security.yaml
vendored
12
.github/workflows/security.yaml
vendored
@ -19,7 +19,7 @@ concurrency:
|
|||||||
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CODER_GO_VERSION: "1.20.4"
|
CODER_GO_VERSION: "1.20.5"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
codeql:
|
codeql:
|
||||||
@ -32,10 +32,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
languages: go, javascript
|
languages: go, javascript
|
||||||
|
|
||||||
- name: Setup Go
|
- uses: ./.github/actions/setup-go
|
||||||
uses: buildjet/setup-go@v4
|
|
||||||
with:
|
|
||||||
go-version: ${{ env.CODER_GO_VERSION }}
|
|
||||||
|
|
||||||
# Workaround to prevent CodeQL from building the dashboard.
|
# Workaround to prevent CodeQL from building the dashboard.
|
||||||
- name: Remove Makefile
|
- name: Remove Makefile
|
||||||
@ -63,10 +60,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- uses: buildjet/setup-go@v4
|
- uses: ./.github/actions/setup-go
|
||||||
with:
|
|
||||||
go-version: ${{ env.CODER_GO_VERSION }}
|
|
||||||
cache: true
|
|
||||||
|
|
||||||
- name: Cache Node
|
- name: Cache Node
|
||||||
id: cache-node
|
id: cache-node
|
||||||
|
@ -8,7 +8,7 @@ FROM ubuntu:jammy AS go
|
|||||||
|
|
||||||
RUN apt-get update && apt-get install --yes curl gcc
|
RUN apt-get update && apt-get install --yes curl gcc
|
||||||
# Install Go manually, so that we can control the version
|
# Install Go manually, so that we can control the version
|
||||||
ARG GO_VERSION=1.20.4
|
ARG GO_VERSION=1.20.5
|
||||||
RUN mkdir --parents /usr/local/go
|
RUN mkdir --parents /usr/local/go
|
||||||
|
|
||||||
# Boring Go is needed to build FIPS-compliant binaries.
|
# Boring Go is needed to build FIPS-compliant binaries.
|
||||||
|
Reference in New Issue
Block a user