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:
Dan Sosedoff
2022-12-06 18:34:08 -06:00
committed by GitHub
parent 2c745fa68d
commit bbe9a97d05
6 changed files with 12 additions and 9 deletions

View File

@@ -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:

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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)

View File

@@ -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%