mirror of
https://github.com/tarampampam/error-pages.git
synced 2024-08-30 18:22:40 +00:00
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:
parent
8d43984644
commit
830b5bb934
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
@ -26,13 +26,12 @@ jobs:
|
|||||||
os: [linux, darwin] # linux, freebsd, darwin, windows
|
os: [linux, darwin] # linux, freebsd, darwin, windows
|
||||||
arch: [amd64] # amd64, 386
|
arch: [amd64] # amd64, 386
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v3
|
|
||||||
with: {go-version: 1.19}
|
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: gacts/github-slug@v1
|
- uses: gacts/setup-go-with-cache@v1
|
||||||
id: slug
|
with: {go-version-file: go.mod}
|
||||||
|
|
||||||
|
- {uses: gacts/github-slug@v1, id: slug}
|
||||||
|
|
||||||
- name: Generate builder values
|
- name: Generate builder values
|
||||||
id: values
|
id: values
|
||||||
@ -60,8 +59,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: gacts/github-slug@v1
|
- {uses: gacts/github-slug@v1, id: slug}
|
||||||
id: slug
|
|
||||||
|
|
||||||
- uses: docker/setup-qemu-action@v2 # Action page: <https://github.com/docker/setup-qemu-action>
|
- 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
|
runs-on: ubuntu-20.04
|
||||||
needs: [docker-image]
|
needs: [docker-image]
|
||||||
steps:
|
steps:
|
||||||
- uses: gacts/github-slug@v1
|
- {uses: gacts/github-slug@v1, id: slug}
|
||||||
id: slug
|
|
||||||
|
|
||||||
- name: Take rendered templates from the built docker image
|
- name: Take rendered templates from the built docker image
|
||||||
run: |
|
run: |
|
||||||
|
42
.github/workflows/tests.yml
vendored
42
.github/workflows/tests.yml
vendored
@ -41,8 +41,8 @@ jobs: # Docs: <https://git.io/JvxXE>
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: actions/setup-node@v3
|
- uses: gacts/setup-node-with-cache@v1
|
||||||
with: {node-version: '16'}
|
with: {node-version: 16}
|
||||||
|
|
||||||
- name: Install linter
|
- name: Install linter
|
||||||
run: npm install -g ajv-cli # Package page: <https://www.npmjs.com/package/ajv-cli>
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: actions/setup-node@v3
|
- uses: gacts/setup-node-with-cache@v1
|
||||||
with: {node-version: '16'}
|
with: {node-version: 16}
|
||||||
|
|
||||||
- name: Install eslint
|
- name: Install eslint
|
||||||
run: npm install -g eslint@v8 # Package page: <https://www.npmjs.com/package/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
|
name: Unit tests
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v3
|
|
||||||
with: {go-version: 1.19}
|
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with: {fetch-depth: 2} # Fixes codecov error 'Issue detecting commit SHA'
|
with: {fetch-depth: 2} # Fixes codecov error 'Issue detecting commit SHA'
|
||||||
|
|
||||||
- name: Go modules Cache # Docs: <https://git.io/JfAKn#go---modules>
|
- uses: gacts/setup-go-with-cache@v1
|
||||||
uses: actions/cache@v3
|
with: {go-version-file: go.mod}
|
||||||
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
|
|
||||||
|
|
||||||
- name: Run Unit tests
|
- name: Run Unit tests
|
||||||
run: go test -race -covermode=atomic -coverprofile /tmp/coverage.txt ./...
|
run: go test -race -covermode=atomic -coverprofile /tmp/coverage.txt ./...
|
||||||
@ -106,22 +95,12 @@ jobs: # Docs: <https://git.io/JvxXE>
|
|||||||
arch: [amd64] # amd64, 386
|
arch: [amd64] # amd64, 386
|
||||||
needs: [golangci-lint, go-test, validate-config-file]
|
needs: [golangci-lint, go-test, validate-config-file]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v3
|
|
||||||
with: {go-version: 1.19}
|
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: gacts/github-slug@v1
|
- uses: gacts/setup-go-with-cache@v1
|
||||||
id: slug
|
with: {go-version-file: go.mod}
|
||||||
|
|
||||||
- name: Go modules Cache # Docs: <https://git.io/JfAKn#go---modules>
|
- {uses: gacts/github-slug@v1, id: slug}
|
||||||
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
|
|
||||||
|
|
||||||
- name: Build application
|
- name: Build application
|
||||||
env:
|
env:
|
||||||
@ -183,8 +162,7 @@ jobs: # Docs: <https://git.io/JvxXE>
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- uses: gacts/github-slug@v1
|
- {uses: gacts/github-slug@v1, id: slug}
|
||||||
id: slug
|
|
||||||
|
|
||||||
- uses: docker/build-push-action@v4 # Action page: <https://github.com/docker/build-push-action>
|
- uses: docker/build-push-action@v4 # Action page: <https://github.com/docker/build-push-action>
|
||||||
with:
|
with:
|
||||||
|
@ -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].
|
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
|
## v2.20.0
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# syntax=docker/dockerfile:1.2
|
# syntax=docker/dockerfile:1.2
|
||||||
|
|
||||||
# Image page: <https://hub.docker.com/_/golang>
|
# 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" .`
|
# 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"
|
ARG APP_VERSION="undefined@docker"
|
||||||
|
@ -8,7 +8,7 @@ volumes:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
app: &app-service
|
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
|
working_dir: /src
|
||||||
environment:
|
environment:
|
||||||
HOME: /tmp
|
HOME: /tmp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user