chore(deps): update golang docker tag to v1.20 (#173)

* chore(deps): update golang docker tag to v1.20

* updated

* update

* update

* Update .github/workflows/tests.yml

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Paramtamtam <7326800+tarampampam@users.noreply.github.com>
This commit is contained in:
renovate[bot] 2023-02-02 13:09:29 +04:00 committed by GitHub
parent 8d43984644
commit 830b5bb934
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 25 additions and 44 deletions

View File

@ -26,13 +26,12 @@ jobs:
os: [linux, darwin] # linux, freebsd, darwin, windows
arch: [amd64] # amd64, 386
steps:
- uses: actions/setup-go@v3
with: {go-version: 1.19}
- uses: actions/checkout@v3
- uses: gacts/github-slug@v1
id: slug
- uses: gacts/setup-go-with-cache@v1
with: {go-version-file: go.mod}
- {uses: gacts/github-slug@v1, id: slug}
- name: Generate builder values
id: values
@ -60,8 +59,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: gacts/github-slug@v1
id: slug
- {uses: gacts/github-slug@v1, id: slug}
- uses: docker/setup-qemu-action@v2 # Action page: <https://github.com/docker/setup-qemu-action>
@ -100,8 +98,7 @@ jobs:
runs-on: ubuntu-20.04
needs: [docker-image]
steps:
- uses: gacts/github-slug@v1
id: slug
- {uses: gacts/github-slug@v1, id: slug}
- name: Take rendered templates from the built docker image
run: |

View File

@ -41,8 +41,8 @@ jobs: # Docs: <https://git.io/JvxXE>
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with: {node-version: '16'}
- uses: gacts/setup-node-with-cache@v1
with: {node-version: 16}
- name: Install linter
run: npm install -g ajv-cli # Package page: <https://www.npmjs.com/package/ajv-cli>
@ -56,8 +56,8 @@ jobs: # Docs: <https://git.io/JvxXE>
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with: {node-version: '16'}
- uses: gacts/setup-node-with-cache@v1
with: {node-version: 16}
- name: Install eslint
run: npm install -g eslint@v8 # Package page: <https://www.npmjs.com/package/eslint>
@ -70,22 +70,11 @@ jobs: # Docs: <https://git.io/JvxXE>
name: Unit tests
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-go@v3
with: {go-version: 1.19}
- uses: actions/checkout@v3
with: {fetch-depth: 2} # Fixes codecov error 'Issue detecting commit SHA'
- name: Go modules Cache # Docs: <https://git.io/JfAKn#go---modules>
uses: actions/cache@v3
id: go-cache
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- if: steps.go-cache.outputs.cache-hit != 'true'
run: go mod download
- uses: gacts/setup-go-with-cache@v1
with: {go-version-file: go.mod}
- name: Run Unit tests
run: go test -race -covermode=atomic -coverprofile /tmp/coverage.txt ./...
@ -106,22 +95,12 @@ jobs: # Docs: <https://git.io/JvxXE>
arch: [amd64] # amd64, 386
needs: [golangci-lint, go-test, validate-config-file]
steps:
- uses: actions/setup-go@v3
with: {go-version: 1.19}
- uses: actions/checkout@v3
- uses: gacts/github-slug@v1
id: slug
- uses: gacts/setup-go-with-cache@v1
with: {go-version-file: go.mod}
- name: Go modules Cache # Docs: <https://git.io/JfAKn#go---modules>
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- run: go mod download
- {uses: gacts/github-slug@v1, id: slug}
- name: Build application
env:
@ -183,8 +162,7 @@ jobs: # Docs: <https://git.io/JvxXE>
steps:
- uses: actions/checkout@v3
- uses: gacts/github-slug@v1
id: slug
- {uses: gacts/github-slug@v1, id: slug}
- uses: docker/build-push-action@v4 # Action page: <https://github.com/docker/build-push-action>
with:

View File

@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file.
The format is based on [Keep a Changelog][keepachangelog] and this project adheres to [Semantic Versioning][semver].
## UNRELEASED
### Changed
- Go updated from `1.19` up to `1.20`
## v2.20.0
### Changed

View File

@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1.2
# Image page: <https://hub.docker.com/_/golang>
FROM golang:1.19-alpine as builder
FROM golang:1.20-alpine as builder
# can be passed with any prefix (like `v1.2.3@GITHASH`), e.g.: `docker build --build-arg "APP_VERSION=v1.2.3@GITHASH" .`
ARG APP_VERSION="undefined@docker"

View File

@ -8,7 +8,7 @@ volumes:
services:
app: &app-service
image: golang:1.19-buster # Image page: <https://hub.docker.com/_/golang>
image: golang:1.20-buster # Image page: <https://hub.docker.com/_/golang>
working_dir: /src
environment:
HOME: /tmp

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/tarampampam/error-pages
go 1.19
go 1.20
require (
github.com/a8m/envsubst v1.3.0