Switch go build target to 1.19 (#603)
* Switch go build target to 1.19 * Add make docker-run target for testing new images * Bump appveyor go version * Fix appveyor paths
This commit is contained in:
2
.github/workflows/checks.yml
vendored
2
.github/workflows/checks.yml
vendored
@@ -4,7 +4,7 @@ on:
|
|||||||
- push
|
- push
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GO_VERSION: 1.18
|
GO_VERSION: 1.19
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
2
.github/workflows/docker.yml
vendored
2
.github/workflows/docker.yml
vendored
@@ -6,7 +6,7 @@ on:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GO_VERSION: 1.18
|
GO_VERSION: 1.19
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
IMAGE_REPOSITORY: sosedoff/pgweb
|
IMAGE_REPOSITORY: sosedoff/pgweb
|
||||||
|
|
||||||
|
|||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -6,7 +6,7 @@ on:
|
|||||||
- "v*"
|
- "v*"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GO_VERSION: 1.18
|
GO_VERSION: 1.19
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
DOCKER_REPOSITORY: sosedoff/pgweb
|
DOCKER_REPOSITORY: sosedoff/pgweb
|
||||||
GHCR_REPOSITORY: sosedoff/pgweb
|
GHCR_REPOSITORY: sosedoff/pgweb
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Builder Stage
|
# Builder Stage
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
FROM golang:1.18-bullseye AS build
|
FROM golang:1.19-bullseye AS build
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
ADD . /build
|
ADD . /build
|
||||||
|
|||||||
3
Makefile
3
Makefile
@@ -60,6 +60,9 @@ clean:
|
|||||||
docker:
|
docker:
|
||||||
docker build --no-cache -t pgweb .
|
docker build --no-cache -t pgweb .
|
||||||
|
|
||||||
|
docker-run:
|
||||||
|
docker run --rm -p 8081:8081 -it pgweb
|
||||||
|
|
||||||
docker-release:
|
docker-release:
|
||||||
docker build --no-cache -t $(DOCKER_RELEASE_TAG) .
|
docker build --no-cache -t $(DOCKER_RELEASE_TAG) .
|
||||||
docker tag $(DOCKER_RELEASE_TAG) $(DOCKER_LATEST_TAG)
|
docker tag $(DOCKER_RELEASE_TAG) $(DOCKER_LATEST_TAG)
|
||||||
|
|||||||
10
appveyor.yml
10
appveyor.yml
@@ -2,17 +2,17 @@ clone_folder: c:\gopath\src\github.com\sosedoff\pgweb
|
|||||||
|
|
||||||
environment:
|
environment:
|
||||||
GOPATH: c:\gopath
|
GOPATH: c:\gopath
|
||||||
GOROOT: c:\goroot118\go
|
GOROOT: c:\goroot119\go
|
||||||
GOTOOLDIR: c:\goroot118\go\pkg\tool\windows_amd64
|
GOTOOLDIR: c:\goroot119\go\pkg\tool\windows_amd64
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- postgresql
|
- postgresql
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- ps: mkdir c:\goroot118
|
- ps: mkdir c:\goroot119
|
||||||
- ps: iwr -outf c:\goroot118\go1.18.windows-amd64.zip https://golang.org/dl/go1.18.windows-amd64.zip
|
- ps: iwr -outf c:\goroot119\go1.19.windows-amd64.zip https://golang.org/dl/go1.19.windows-amd64.zip
|
||||||
- ps: Expand-Archive c:\goroot118\go1.18.windows-amd64.zip -DestinationPath c:\goroot118
|
- ps: Expand-Archive c:\goroot119\go1.19.windows-amd64.zip -DestinationPath c:\goroot119
|
||||||
- set PATH=%GOPATH%\bin;%PATH%
|
- set PATH=%GOPATH%\bin;%PATH%
|
||||||
- set PATH=%GOROOT%\bin;%PATH%
|
- set PATH=%GOROOT%\bin;%PATH%
|
||||||
- echo %PATH%
|
- echo %PATH%
|
||||||
|
|||||||
Reference in New Issue
Block a user