ci: 👷 CI system updated

This commit is contained in:
Paramtamtam 2023-02-23 21:50:20 +04:00
parent 48313685ec
commit 80891b0b46
No known key found for this signature in database
GPG Key ID: 366371698FAD0A2B
3 changed files with 17 additions and 17 deletions

View File

@ -8,7 +8,7 @@ on:
jobs:
docker-hub-description:
name: Docker Hub Description
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

View File

@ -7,7 +7,7 @@ on:
jobs:
purge-cdn-cache:
name: Purge jsDelivr CDN cache
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: gacts/purge-jsdelivr-cache@v1 # Action page: <https://github.com/gacts/purge-jsdelivr-cache>
with:
@ -19,7 +19,7 @@ jobs:
build:
name: Build for ${{ matrix.os }} (${{ matrix.arch }})
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
@ -42,7 +42,7 @@ jobs:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
CGO_ENABLED: 0
LDFLAGS: -s -w -X github.com/tarampampam/error-pages/internal/version.version=${{ steps.slug.outputs.version }}
LDFLAGS: -s -w -X gh.tarampamp.am/error-pages/internal/version.version=${{ steps.slug.outputs.version }}
run: go build -trimpath -ldflags "$LDFLAGS" -o "./${{ steps.values.outputs.binary-name }}" ./cmd/error-pages/
- name: Upload binary file to release
@ -55,7 +55,7 @@ jobs:
docker-image:
name: Build docker image
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -95,7 +95,7 @@ jobs:
demo:
name: Update the demonstration
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: [docker-image]
steps:
- {uses: gacts/github-slug@v1, id: slug}

View File

@ -15,7 +15,7 @@ concurrency:
jobs: # Docs: <https://git.io/JvxXE>
gitleaks:
name: Gitleaks
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with: {fetch-depth: 0}
@ -25,7 +25,7 @@ jobs: # Docs: <https://git.io/JvxXE>
golangci-lint:
name: Golang-CI (lint)
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -37,7 +37,7 @@ jobs: # Docs: <https://git.io/JvxXE>
validate-config-file:
name: Validate config file
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -52,7 +52,7 @@ jobs: # Docs: <https://git.io/JvxXE>
lint-l10n:
name: Lint l10n file(s)
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -68,7 +68,7 @@ jobs: # Docs: <https://git.io/JvxXE>
go-test:
name: Unit tests
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with: {fetch-depth: 2} # Fixes codecov error 'Issue detecting commit SHA'
@ -87,7 +87,7 @@ jobs: # Docs: <https://git.io/JvxXE>
build:
name: Build for ${{ matrix.os }} (${{ matrix.arch }})
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
@ -107,7 +107,7 @@ jobs: # Docs: <https://git.io/JvxXE>
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
CGO_ENABLED: 0
LDFLAGS: -s -w -X github.com/tarampampam/error-pages/internal/version.version=${{ steps.slug.outputs.branch-name-slug }}@${{ steps.slug.outputs.commit-hash-short }}
LDFLAGS: -s -w -X gh.tarampamp.am/error-pages/internal/version.version=${{ steps.slug.outputs.branch-name-slug }}@${{ steps.slug.outputs.commit-hash-short }}
run: go build -trimpath -ldflags "$LDFLAGS" -o ./error-pages ./cmd/error-pages/
- name: Try to execute
@ -123,7 +123,7 @@ jobs: # Docs: <https://git.io/JvxXE>
generate:
name: Run templates generator
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v3
@ -157,7 +157,7 @@ jobs: # Docs: <https://git.io/JvxXE>
docker-image:
name: Build docker image
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: [golangci-lint, go-test, validate-config-file]
steps:
- uses: actions/checkout@v3
@ -182,7 +182,7 @@ jobs: # Docs: <https://git.io/JvxXE>
scan-docker-image:
name: Scan the docker image
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: [docker-image]
steps:
- uses: actions/checkout@v3 # is needed for `upload-sarif` action
@ -207,7 +207,7 @@ jobs: # Docs: <https://git.io/JvxXE>
poke-docker-image:
name: Run the docker image
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: [docker-image]
timeout-minutes: 2
steps: