From 830b5bb9341877a525798b6c481e2f6c26ef7782 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 2 Feb 2023 13:09:29 +0400 Subject: [PATCH] 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> --- .github/workflows/release.yml | 15 +++++-------- .github/workflows/tests.yml | 42 +++++++++-------------------------- CHANGELOG.md | 6 +++++ Dockerfile | 2 +- docker-compose.yml | 2 +- go.mod | 2 +- 6 files changed, 25 insertions(+), 44 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c872fda..f44e1b3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: @@ -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: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2e8cb43..0f5051f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -41,8 +41,8 @@ jobs: # Docs: 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: @@ -56,8 +56,8 @@ jobs: # Docs: 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: @@ -70,22 +70,11 @@ jobs: # Docs: 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: - 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: 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: - 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: 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: with: diff --git a/CHANGELOG.md b/CHANGELOG.md index 2dd9917..f2ae8f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/Dockerfile b/Dockerfile index 087e3fd..9d489c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile:1.2 # Image page: -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" diff --git a/docker-compose.yml b/docker-compose.yml index 416498b..1579cb9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,7 @@ volumes: services: app: &app-service - image: golang:1.19-buster # Image page: + image: golang:1.20-buster # Image page: working_dir: /src environment: HOME: /tmp diff --git a/go.mod b/go.mod index 8c1f3fd..f417623 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/tarampampam/error-pages -go 1.19 +go 1.20 require ( github.com/a8m/envsubst v1.3.0