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
|
||||
|
||||
env:
|
||||
GO_VERSION: 1.18
|
||||
GO_VERSION: 1.19
|
||||
CGO_ENABLED: 0
|
||||
|
||||
jobs:
|
||||
|
||||
2
.github/workflows/docker.yml
vendored
2
.github/workflows/docker.yml
vendored
@@ -6,7 +6,7 @@ on:
|
||||
- master
|
||||
|
||||
env:
|
||||
GO_VERSION: 1.18
|
||||
GO_VERSION: 1.19
|
||||
CGO_ENABLED: 0
|
||||
IMAGE_REPOSITORY: sosedoff/pgweb
|
||||
|
||||
|
||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -6,7 +6,7 @@ on:
|
||||
- "v*"
|
||||
|
||||
env:
|
||||
GO_VERSION: 1.18
|
||||
GO_VERSION: 1.19
|
||||
CGO_ENABLED: 0
|
||||
DOCKER_REPOSITORY: sosedoff/pgweb
|
||||
GHCR_REPOSITORY: sosedoff/pgweb
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# Builder Stage
|
||||
# ------------------------------------------------------------------------------
|
||||
FROM golang:1.18-bullseye AS build
|
||||
FROM golang:1.19-bullseye AS build
|
||||
|
||||
WORKDIR /build
|
||||
ADD . /build
|
||||
|
||||
3
Makefile
3
Makefile
@@ -60,6 +60,9 @@ clean:
|
||||
docker:
|
||||
docker build --no-cache -t pgweb .
|
||||
|
||||
docker-run:
|
||||
docker run --rm -p 8081:8081 -it pgweb
|
||||
|
||||
docker-release:
|
||||
docker build --no-cache -t $(DOCKER_RELEASE_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:
|
||||
GOPATH: c:\gopath
|
||||
GOROOT: c:\goroot118\go
|
||||
GOTOOLDIR: c:\goroot118\go\pkg\tool\windows_amd64
|
||||
GOROOT: c:\goroot119\go
|
||||
GOTOOLDIR: c:\goroot119\go\pkg\tool\windows_amd64
|
||||
CGO_ENABLED: 0
|
||||
|
||||
services:
|
||||
- postgresql
|
||||
|
||||
install:
|
||||
- ps: mkdir c:\goroot118
|
||||
- ps: iwr -outf c:\goroot118\go1.18.windows-amd64.zip https://golang.org/dl/go1.18.windows-amd64.zip
|
||||
- ps: Expand-Archive c:\goroot118\go1.18.windows-amd64.zip -DestinationPath c:\goroot118
|
||||
- ps: mkdir c:\goroot119
|
||||
- ps: iwr -outf c:\goroot119\go1.19.windows-amd64.zip https://golang.org/dl/go1.19.windows-amd64.zip
|
||||
- ps: Expand-Archive c:\goroot119\go1.19.windows-amd64.zip -DestinationPath c:\goroot119
|
||||
- set PATH=%GOPATH%\bin;%PATH%
|
||||
- set PATH=%GOROOT%\bin;%PATH%
|
||||
- echo %PATH%
|
||||
|
||||
Reference in New Issue
Block a user