Skip to content

Commit

Permalink
Merge pull request #1799 from tboerger/newer-golang
Browse files Browse the repository at this point in the history
fix: build with go 1.21
  • Loading branch information
fiftin committed Mar 1, 2024
2 parents 10387f0 + 61a41a2 commit 1834c6e
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 15 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.20' }
with: { go-version: '1.21' }

- 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.20' }
with: { go-version: '1.21' }

- 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.20' }
with: { go-version: '1.21' }

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

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

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

- 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.20' }
with: { go-version: '1.21' }

- 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.20' }
with: { go-version: '1.21' }

- 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.20-alpine3.18
FROM golang:1.21-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.20-alpine3.18 as golang
FROM golang:1.21-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.20-alpine3.18
FROM golang:1.21-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.20-alpine3.18 as builder
FROM golang:1.21-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.20-alpine3.18 as builder
FROM --platform=$BUILDPLATFORM golang:1.21-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.20-alpine3.18 as builder
FROM --platform=$BUILDPLATFORM golang:1.21-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.20
go 1.21

require (
github.com/Masterminds/squirrel v1.5.4
Expand Down
1 change: 0 additions & 1 deletion web/src/lang/nl.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,4 +238,3 @@ export default {
CreateDemoProject: 'Demo-project aanmaken',
LeaveProject: 'Project verlaten',
};

0 comments on commit 1834c6e

Please sign in to comment.