Skip to content

Commit a0abea2

Browse files
authored
Go 1.19 support (#114)
1 parent 5afb6d2 commit a0abea2

12 files changed

+46
-46
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ jobs:
66
name: Build & Test
77
runs-on: ubuntu-latest
88
steps:
9-
- name: Set up Go 1.18
9+
- name: Set up Go 1.19
1010
uses: actions/setup-go@v1
1111
with:
12-
go-version: 1.18
12+
go-version: 1.19
1313
id: go
1414
- name: Check out
1515
uses: actions/checkout@v2
@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
fail-fast: false
3232
matrix:
33-
go: [ 1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17 ]
33+
go: [ 1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17, 1.18 ]
3434
steps:
3535
- name: Set up Go ${{ matrix.go }}
3636
uses: actions/setup-go@v1

static/generated.go

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,18 +1262,18 @@ context.keys().map(context);
12621262
"codelyzer"
12631263
]
12641264
}`,
1265-
"mongo.Dockerfile": `FROM node:16.14.2-alpine3.15 AS JS_BUILD
1265+
"mongo.Dockerfile": `FROM node:16.18.1-alpine3.16 AS JS_BUILD
12661266
COPY webapp /webapp
12671267
WORKDIR webapp
12681268
RUN npm install && npm run build
12691269
1270-
FROM golang:1.18.1-alpine3.15 AS GO_BUILD
1270+
FROM golang:1.19.0-alpine3.16 AS GO_BUILD
12711271
RUN apk update && apk add build-base
12721272
COPY server /server
12731273
WORKDIR /server
12741274
RUN go build -o /go/bin/server
12751275
1276-
FROM alpine:3.13.5
1276+
FROM alpine:3.16.3
12771277
COPY --from=JS_BUILD /webapp/build* ./webapp/
12781278
COPY --from=GO_BUILD /go/bin/server ./
12791279
CMD ./server
@@ -1341,18 +1341,18 @@ docker-compose up
13411341
This will build the application and start it together with
13421342
its database. Access the application on http://localhost:8080.
13431343
`,
1344-
"mongo.docker-compose-dev.yml": `version: "3.7"
1344+
"mongo.docker-compose-dev.yml": `version: "3.8"
13451345
services:
13461346
dev_db:
1347-
image: mongo:4.4.5
1347+
image: mongo:6.0.3
13481348
environment:
13491349
MONGO_INITDB_DATABASE: tech
13501350
ports:
13511351
- 27017:27017
13521352
volumes:
13531353
- ./init-db.js:/docker-entrypoint-initdb.d/init.js
13541354
`,
1355-
"mongo.docker-compose.yml": `version: "3.7"
1355+
"mongo.docker-compose.yml": `version: "3.8"
13561356
services:
13571357
app:
13581358
build: .
@@ -1364,7 +1364,7 @@ services:
13641364
environment:
13651365
profile: prod
13661366
db:
1367-
image: mongo:4.4.5
1367+
image: mongo:6.0.3
13681368
container_name: db
13691369
environment:
13701370
MONGO_INITDB_DATABASE: tech
@@ -1529,17 +1529,17 @@ func clientOptions() *options.ClientOptions {
15291529
)
15301530
}
15311531
`,
1532-
"mysql.Dockerfile": `FROM node:16.14.2-alpine3.15 AS JS_BUILD
1532+
"mysql.Dockerfile": `FROM node:16.18.1-alpine3.16 AS JS_BUILD
15331533
COPY webapp /webapp
15341534
WORKDIR webapp
15351535
RUN npm install && npm run build
15361536
1537-
FROM golang:1.18.1-alpine3.15 AS GO_BUILD
1537+
FROM golang:1.19.0-alpine3.16 AS GO_BUILD
15381538
COPY server /server
15391539
WORKDIR /server
15401540
RUN go build -o /go/bin/server
15411541
1542-
FROM alpine:3.13.5
1542+
FROM alpine:3.16.3
15431543
COPY --from=JS_BUILD /webapp/build* ./webapp/
15441544
COPY --from=GO_BUILD /go/bin/server ./
15451545
CMD ./server
@@ -1603,10 +1603,10 @@ docker-compose up
16031603
This will build the application and start it together with
16041604
its database. Access the application on http://localhost:8080.
16051605
`,
1606-
"mysql.docker-compose-dev.yml": `version: "3.7"
1606+
"mysql.docker-compose-dev.yml": `version: "3.8"
16071607
services:
16081608
dev_db:
1609-
image: mysql:8.0.23
1609+
image: mysql:8.0.31
16101610
environment:
16111611
MYSQL_DATABASE: goxygen
16121612
MYSQL_USER: goxygen
@@ -1617,7 +1617,7 @@ services:
16171617
volumes:
16181618
- ./init-db.sql:/docker-entrypoint-initdb.d/init.sql
16191619
`,
1620-
"mysql.docker-compose.yml": `version: "3.7"
1620+
"mysql.docker-compose.yml": `version: "3.8"
16211621
services:
16221622
app:
16231623
build: .
@@ -1630,7 +1630,7 @@ services:
16301630
profile: prod
16311631
db_pass: pass
16321632
db:
1633-
image: mysql:8.0.23
1633+
image: mysql:8.0.31
16341634
container_name: db
16351635
environment:
16361636
MYSQL_DATABASE: goxygen
@@ -1733,17 +1733,17 @@ func dataSource() string {
17331733
return "goxygen:" + pass + "@tcp(" + host + ":3306)/goxygen"
17341734
}
17351735
`,
1736-
"postgres.Dockerfile": `FROM node:16.14.2-alpine3.15 AS JS_BUILD
1736+
"postgres.Dockerfile": `FROM node:16.18.1-alpine3.16 AS JS_BUILD
17371737
COPY webapp /webapp
17381738
WORKDIR webapp
17391739
RUN npm install && npm run build
17401740
1741-
FROM golang:1.18.1-alpine3.15 AS GO_BUILD
1741+
FROM golang:1.19.0-alpine3.16 AS GO_BUILD
17421742
COPY server /server
17431743
WORKDIR /server
17441744
RUN go build -o /go/bin/server
17451745
1746-
FROM alpine:3.13.5
1746+
FROM alpine:3.16.3
17471747
COPY --from=JS_BUILD /webapp/build* ./webapp/
17481748
COPY --from=GO_BUILD /go/bin/server ./
17491749
CMD ./server
@@ -1807,10 +1807,10 @@ docker-compose up
18071807
This will build the application and start it together with
18081808
its database. Access the application on http://localhost:8080.
18091809
`,
1810-
"postgres.docker-compose-dev.yml": `version: "3.7"
1810+
"postgres.docker-compose-dev.yml": `version: "3.8"
18111811
services:
18121812
dev_db:
1813-
image: postgres:9.6.21-alpine
1813+
image: postgres:15.1-alpine3.17
18141814
environment:
18151815
POSTGRES_PASSWORD: pass
18161816
POSTGRES_USER: goxygen
@@ -1820,7 +1820,7 @@ services:
18201820
volumes:
18211821
- ./init-db.sql:/docker-entrypoint-initdb.d/init.sql
18221822
`,
1823-
"postgres.docker-compose.yml": `version: "3.7"
1823+
"postgres.docker-compose.yml": `version: "3.8"
18241824
services:
18251825
app:
18261826
build: .
@@ -1833,7 +1833,7 @@ services:
18331833
profile: prod
18341834
db_pass: pass
18351835
db:
1836-
image: postgres:9.6.21-alpine
1836+
image: postgres:15.1-alpine3.17
18371837
environment:
18381838
POSTGRES_PASSWORD: pass
18391839
POSTGRES_USER: goxygen

templates/mongo.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
FROM node:16.14.2-alpine3.15 AS JS_BUILD
1+
FROM node:16.18.1-alpine3.16 AS JS_BUILD
22
COPY webapp /webapp
33
WORKDIR webapp
44
RUN npm install && npm run build
55

6-
FROM golang:1.18.1-alpine3.15 AS GO_BUILD
6+
FROM golang:1.19.0-alpine3.16 AS GO_BUILD
77
RUN apk update && apk add build-base
88
COPY server /server
99
WORKDIR /server
1010
RUN go build -o /go/bin/server
1111

12-
FROM alpine:3.13.5
12+
FROM alpine:3.16.3
1313
COPY --from=JS_BUILD /webapp/build* ./webapp/
1414
COPY --from=GO_BUILD /go/bin/server ./
1515
CMD ./server

templates/mongo.docker-compose-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
version: "3.7"
1+
version: "3.8"
22
services:
33
dev_db:
4-
image: mongo:4.4.5
4+
image: mongo:6.0.3
55
environment:
66
MONGO_INITDB_DATABASE: tech
77
ports:

templates/mongo.docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "3.7"
1+
version: "3.8"
22
services:
33
app:
44
build: .
@@ -10,7 +10,7 @@ services:
1010
environment:
1111
profile: prod
1212
db:
13-
image: mongo:4.4.5
13+
image: mongo:6.0.3
1414
container_name: db
1515
environment:
1616
MONGO_INITDB_DATABASE: tech

templates/mysql.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
FROM node:16.14.2-alpine3.15 AS JS_BUILD
1+
FROM node:16.18.1-alpine3.16 AS JS_BUILD
22
COPY webapp /webapp
33
WORKDIR webapp
44
RUN npm install && npm run build
55

6-
FROM golang:1.18.1-alpine3.15 AS GO_BUILD
6+
FROM golang:1.19.0-alpine3.16 AS GO_BUILD
77
COPY server /server
88
WORKDIR /server
99
RUN go build -o /go/bin/server
1010

11-
FROM alpine:3.13.5
11+
FROM alpine:3.16.3
1212
COPY --from=JS_BUILD /webapp/build* ./webapp/
1313
COPY --from=GO_BUILD /go/bin/server ./
1414
CMD ./server

templates/mysql.docker-compose-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
version: "3.7"
1+
version: "3.8"
22
services:
33
dev_db:
4-
image: mysql:8.0.23
4+
image: mysql:8.0.31
55
environment:
66
MYSQL_DATABASE: goxygen
77
MYSQL_USER: goxygen

templates/mysql.docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "3.7"
1+
version: "3.8"
22
services:
33
app:
44
build: .
@@ -11,7 +11,7 @@ services:
1111
profile: prod
1212
db_pass: pass
1313
db:
14-
image: mysql:8.0.23
14+
image: mysql:8.0.31
1515
container_name: db
1616
environment:
1717
MYSQL_DATABASE: goxygen

templates/postgres.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
FROM node:16.14.2-alpine3.15 AS JS_BUILD
1+
FROM node:16.18.1-alpine3.16 AS JS_BUILD
22
COPY webapp /webapp
33
WORKDIR webapp
44
RUN npm install && npm run build
55

6-
FROM golang:1.18.1-alpine3.15 AS GO_BUILD
6+
FROM golang:1.19.0-alpine3.16 AS GO_BUILD
77
COPY server /server
88
WORKDIR /server
99
RUN go build -o /go/bin/server
1010

11-
FROM alpine:3.13.5
11+
FROM alpine:3.16.3
1212
COPY --from=JS_BUILD /webapp/build* ./webapp/
1313
COPY --from=GO_BUILD /go/bin/server ./
1414
CMD ./server

templates/postgres.docker-compose-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
version: "3.7"
1+
version: "3.8"
22
services:
33
dev_db:
4-
image: postgres:9.6.21-alpine
4+
image: postgres:15.1-alpine3.17
55
environment:
66
POSTGRES_PASSWORD: pass
77
POSTGRES_USER: goxygen

0 commit comments

Comments
 (0)