Skip to content

Commit

Permalink
feat: update go to v1.20 (#1690)
Browse files Browse the repository at this point in the history
* feat: update go to v1.20

* ci: golang version to 20 in github actions

* ci: fix golang version
  • Loading branch information
fiftin authored Dec 25, 2023
1 parent 144a15f commit c00f5a1
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: [ubuntu-latest]
steps:
- uses: actions/setup-go@v3
with: { go-version: 1.19 }
with: { go-version: '1.20' }

- uses: actions/setup-node@v3
with: { node-version: '16' }
Expand All @@ -36,7 +36,7 @@ jobs:
runs-on: [ubuntu-latest]
steps:
- uses: actions/setup-go@v3
with: { go-version: 1.19 }
with: { go-version: '1.20' }

- run: go install github.com/go-task/task/v3/cmd/task@latest

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: [ubuntu-latest]
steps:
- uses: actions/setup-go@v3
with: { go-version: 1.19 }
with: { go-version: '1.20' }

- uses: actions/setup-node@v3
with: { node-version: '16' }
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
needs: [test-db-migration]
steps:
- uses: actions/setup-go@v3
with: { go-version: 1.19 }
with: { go-version: '1.20' }

- run: go install github.com/go-task/task/v3/cmd/task@latest

Expand All @@ -97,7 +97,7 @@ jobs:
if: github.ref == 'refs/heads/develop'
steps:
- uses: actions/setup-go@v3
with: { go-version: 1.19 }
with: { go-version: '1.20' }

- run: go install github.com/go-task/task/v3/cmd/task@latest

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: [ubuntu-latest]
steps:
- uses: actions/setup-go@v3
with: { go-version: 1.19 }
with: { go-version: '1.20' }

- uses: actions/setup-node@v3
with: { node-version: '16' }
Expand All @@ -36,7 +36,7 @@ jobs:
runs-on: [ubuntu-latest]
steps:
- uses: actions/setup-go@v3
with: { go-version: 1.19 }
with: { go-version: '1.20' }

- run: go install github.com/go-task/task/v3/cmd/task@latest

Expand Down
2 changes: 1 addition & 1 deletion deployment/docker/ci/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19-alpine3.18
FROM golang:1.20-alpine3.18

ENV SEMAPHORE_VERSION="development" SEMAPHORE_ARCH="linux_amd64" \
SEMAPHORE_CONFIG_PATH="${SEMAPHORE_CONFIG_PATH:-/etc/semaphore}" \
Expand Down
2 changes: 1 addition & 1 deletion deployment/docker/ci/dredd.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19-alpine3.18 as golang
FROM golang:1.20-alpine3.18 as golang

RUN apk add --no-cache curl git

Expand Down
2 changes: 1 addition & 1 deletion deployment/docker/dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19-alpine3.18
FROM golang:1.20-alpine3.18

ENV SEMAPHORE_VERSION="development" SEMAPHORE_ARCH="linux_amd64" \
SEMAPHORE_CONFIG_PATH="${SEMAPHORE_CONFIG_PATH:-/etc/semaphore}" \
Expand Down
2 changes: 1 addition & 1 deletion deployment/docker/prod/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ansible-semaphore production image
FROM golang:1.19-alpine3.18 as builder
FROM golang:1.20-alpine3.18 as builder

COPY ./ /go/src/github.com/ansible-semaphore/semaphore
WORKDIR /go/src/github.com/ansible-semaphore/semaphore
Expand Down
2 changes: 1 addition & 1 deletion deployment/docker/prod/buildx.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ansible-semaphore production image
FROM --platform=$BUILDPLATFORM golang:1.19-alpine3.18 as builder
FROM --platform=$BUILDPLATFORM golang:1.20-alpine3.18 as builder

COPY ./ /go/src/github.com/ansible-semaphore/semaphore
WORKDIR /go/src/github.com/ansible-semaphore/semaphore
Expand Down
2 changes: 1 addition & 1 deletion deployment/docker/prod/runner.buildx.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ansible-semaphore production image
FROM --platform=$BUILDPLATFORM golang:1.19-alpine3.18 as builder
FROM --platform=$BUILDPLATFORM golang:1.20-alpine3.18 as builder

COPY ./ /go/src/github.com/ansible-semaphore/semaphore
WORKDIR /go/src/github.com/ansible-semaphore/semaphore
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/ansible-semaphore/semaphore

go 1.19
go 1.20

require (
github.com/Sirupsen/logrus v1.0.4
Expand Down

0 comments on commit c00f5a1

Please sign in to comment.