Skip to content

Commit

Permalink
feat(be): update for go 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Jun 21, 2022
1 parent f488b13 commit 0c60a1b
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 28 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@ on:
push:
branches:
- develop
- github_actions

jobs:
build-local:
runs-on: [ubuntu-latest]
steps:
- uses: actions/setup-go@v3
with: { go-version: 1.17 }
with: { go-version: 1.18 }

- uses: actions/setup-node@v3
with: { node-version: '16' }

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

- uses: actions/checkout@v3

Expand All @@ -38,12 +37,12 @@ jobs:
# runs-on: [ubuntu-latest]
# steps:
# - uses: actions/setup-go@v3
# with: { go-version: 1.17 }
# with: { go-version: 1.18 }

# - uses: actions/setup-node@v3
# with: { node-version: '14' }

# - run: go get github.com/go-task/task/v3/cmd/task
# - run: go install github.com/go-task/task/v3/cmd/task

# - uses: actions/checkout@v3

Expand All @@ -65,9 +64,9 @@ jobs:
needs: build-local
steps:
- uses: actions/setup-go@v3
with: { go-version: 1.17 }
with: { go-version: 1.18 }

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

- uses: actions/checkout@v3

Expand Down Expand Up @@ -102,9 +101,9 @@ jobs:
needs: [test-db-migration]
steps:
- uses: actions/setup-go@v3
with: { go-version: 1.17 }
with: { go-version: 1.18 }

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

- uses: actions/checkout@v3

Expand All @@ -116,9 +115,9 @@ jobs:
# runs-on: [ubuntu-latest]
# steps:
# - uses: actions/setup-go@v3
# with: { go-version: 1.17 }
# with: { go-version: 1.18 }

# - run: go get github.com/go-task/task/v3/cmd/task
# - run: go install github.com/go-task/task/v3/cmd/task

# - uses: actions/checkout@v3

Expand All @@ -130,9 +129,9 @@ jobs:
# runs-on: [ubuntu-latest]
# steps:
# - uses: actions/setup-go@v3
# with: { go-version: 1.17 }
# with: { go-version: 1.18 }

# - run: go get github.com/go-task/task/v3/cmd/task
# - run: go install github.com/go-task/task/v3/cmd/task

# - uses: actions/checkout@v3

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

# - run: go get github.com/go-task/task/v3/cmd/task
# - run: go install github.com/go-task/task/v3/cmd/task

# - uses: actions/checkout@v3

Expand All @@ -28,12 +28,12 @@ jobs:
runs-on: [ubuntu-latest]
steps:
- uses: actions/setup-go@v3
with: { go-version: 1.17 }
with: { go-version: 1.18 }

- uses: actions/setup-node@v3
with: { node-version: '16' }

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

- run: sudo apt update && sudo apt-get install rpm

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.16.3-alpine3.13
FROM golang:1.18.3-alpine3.16

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.16.3-alpine3.13 as golang
FROM golang:1.18.3-alpine3.16 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.16.3-alpine3.13
FROM golang:1.18.3-alpine3.16

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/dev/dredd.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.16.3-alpine3.13 as golang
FROM golang:1.18.3-alpine3.16 as golang

RUN apk add --no-cache curl git

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.16.3-alpine3.13 as builder
FROM golang:1.18.3-alpine3.16 as builder

LABEL maintainer="Tom Whiston <tom.whiston@gmail.com>"

Expand Down
21 changes: 15 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/ansible-semaphore/semaphore

go 1.16
go 1.18

require (
github.com/Sirupsen/logrus v1.0.4
Expand All @@ -9,23 +9,32 @@ require (
github.com/go-sql-driver/mysql v1.4.1
github.com/gobuffalo/packr v1.10.4
github.com/google/go-github v17.0.0+incompatible
github.com/google/go-querystring v1.1.0 // indirect
github.com/gorilla/context v0.0.0-20160226214623-1ea25387ff6f
github.com/gorilla/handlers v1.4.2
github.com/gorilla/mux v1.7.3
github.com/gorilla/securecookie v1.1.1
github.com/gorilla/websocket v1.4.1
github.com/lann/builder v0.0.0-20180216234317-1b87b36280d0 // indirect
github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect
github.com/lib/pq v1.2.0
github.com/masterminds/squirrel v0.0.0-20170825200431-a6b93000bd21
github.com/pkg/errors v0.9.1 // indirect
github.com/robfig/cron/v3 v3.0.1
github.com/sirupsen/logrus v1.4.2 // indirect
github.com/snikch/goodman v0.0.0-20171125024755-10e37e294daa
github.com/spf13/cobra v1.2.1
go.etcd.io/bbolt v1.3.2
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
)

require (
github.com/Azure/go-ntlmssp v0.0.0-20200615164410-66371956d46c // indirect
github.com/go-asn1-ber/asn1-ber v1.5.1 // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/lann/builder v0.0.0-20180216234317-1b87b36280d0 // indirect
github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/sirupsen/logrus v1.4.2 // indirect
github.com/spf13/pflag v1.0.5 // indirect
golang.org/x/sys v0.0.0-20210510120138-977fb7262007 // indirect
google.golang.org/appengine v1.6.7 // indirect
gopkg.in/airbrake/gobrake.v2 v2.0.9 // indirect
gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2 // indirect
)

0 comments on commit 0c60a1b

Please sign in to comment.