mirror of
https://github.com/tarampampam/error-pages.git
synced 2024-08-30 18:22:40 +00:00
ci: 👷 CI system updated
This commit is contained in:
parent
48313685ec
commit
80891b0b46
2
.github/workflows/documentation.yml
vendored
2
.github/workflows/documentation.yml
vendored
@ -8,7 +8,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
docker-hub-description:
|
docker-hub-description:
|
||||||
name: Docker Hub Description
|
name: Docker Hub Description
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@ -7,7 +7,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
purge-cdn-cache:
|
purge-cdn-cache:
|
||||||
name: Purge jsDelivr CDN cache
|
name: Purge jsDelivr CDN cache
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: gacts/purge-jsdelivr-cache@v1 # Action page: <https://github.com/gacts/purge-jsdelivr-cache>
|
- uses: gacts/purge-jsdelivr-cache@v1 # Action page: <https://github.com/gacts/purge-jsdelivr-cache>
|
||||||
with:
|
with:
|
||||||
@ -19,7 +19,7 @@ jobs:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build for ${{ matrix.os }} (${{ matrix.arch }})
|
name: Build for ${{ matrix.os }} (${{ matrix.arch }})
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -42,7 +42,7 @@ jobs:
|
|||||||
GOOS: ${{ matrix.os }}
|
GOOS: ${{ matrix.os }}
|
||||||
GOARCH: ${{ matrix.arch }}
|
GOARCH: ${{ matrix.arch }}
|
||||||
CGO_ENABLED: 0
|
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/
|
run: go build -trimpath -ldflags "$LDFLAGS" -o "./${{ steps.values.outputs.binary-name }}" ./cmd/error-pages/
|
||||||
|
|
||||||
- name: Upload binary file to release
|
- name: Upload binary file to release
|
||||||
@ -55,7 +55,7 @@ jobs:
|
|||||||
|
|
||||||
docker-image:
|
docker-image:
|
||||||
name: Build docker image
|
name: Build docker image
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
@ -95,7 +95,7 @@ jobs:
|
|||||||
|
|
||||||
demo:
|
demo:
|
||||||
name: Update the demonstration
|
name: Update the demonstration
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
needs: [docker-image]
|
needs: [docker-image]
|
||||||
steps:
|
steps:
|
||||||
- {uses: gacts/github-slug@v1, id: slug}
|
- {uses: gacts/github-slug@v1, id: slug}
|
||||||
|
22
.github/workflows/tests.yml
vendored
22
.github/workflows/tests.yml
vendored
@ -15,7 +15,7 @@ concurrency:
|
|||||||
jobs: # Docs: <https://git.io/JvxXE>
|
jobs: # Docs: <https://git.io/JvxXE>
|
||||||
gitleaks:
|
gitleaks:
|
||||||
name: Gitleaks
|
name: Gitleaks
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with: {fetch-depth: 0}
|
with: {fetch-depth: 0}
|
||||||
@ -25,7 +25,7 @@ jobs: # Docs: <https://git.io/JvxXE>
|
|||||||
|
|
||||||
golangci-lint:
|
golangci-lint:
|
||||||
name: Golang-CI (lint)
|
name: Golang-CI (lint)
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ jobs: # Docs: <https://git.io/JvxXE>
|
|||||||
|
|
||||||
validate-config-file:
|
validate-config-file:
|
||||||
name: Validate config file
|
name: Validate config file
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ jobs: # Docs: <https://git.io/JvxXE>
|
|||||||
|
|
||||||
lint-l10n:
|
lint-l10n:
|
||||||
name: Lint l10n file(s)
|
name: Lint l10n file(s)
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ jobs: # Docs: <https://git.io/JvxXE>
|
|||||||
|
|
||||||
go-test:
|
go-test:
|
||||||
name: Unit tests
|
name: Unit tests
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- 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'
|
||||||
@ -87,7 +87,7 @@ jobs: # Docs: <https://git.io/JvxXE>
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build for ${{ matrix.os }} (${{ matrix.arch }})
|
name: Build for ${{ matrix.os }} (${{ matrix.arch }})
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -107,7 +107,7 @@ jobs: # Docs: <https://git.io/JvxXE>
|
|||||||
GOOS: ${{ matrix.os }}
|
GOOS: ${{ matrix.os }}
|
||||||
GOARCH: ${{ matrix.arch }}
|
GOARCH: ${{ matrix.arch }}
|
||||||
CGO_ENABLED: 0
|
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/
|
run: go build -trimpath -ldflags "$LDFLAGS" -o ./error-pages ./cmd/error-pages/
|
||||||
|
|
||||||
- name: Try to execute
|
- name: Try to execute
|
||||||
@ -123,7 +123,7 @@ jobs: # Docs: <https://git.io/JvxXE>
|
|||||||
|
|
||||||
generate:
|
generate:
|
||||||
name: Run templates generator
|
name: Run templates generator
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
needs: [build]
|
needs: [build]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@ -157,7 +157,7 @@ jobs: # Docs: <https://git.io/JvxXE>
|
|||||||
|
|
||||||
docker-image:
|
docker-image:
|
||||||
name: Build docker image
|
name: Build docker image
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
needs: [golangci-lint, go-test, validate-config-file]
|
needs: [golangci-lint, go-test, validate-config-file]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@ -182,7 +182,7 @@ jobs: # Docs: <https://git.io/JvxXE>
|
|||||||
|
|
||||||
scan-docker-image:
|
scan-docker-image:
|
||||||
name: Scan the docker image
|
name: Scan the docker image
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
needs: [docker-image]
|
needs: [docker-image]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3 # is needed for `upload-sarif` action
|
- uses: actions/checkout@v3 # is needed for `upload-sarif` action
|
||||||
@ -207,7 +207,7 @@ jobs: # Docs: <https://git.io/JvxXE>
|
|||||||
|
|
||||||
poke-docker-image:
|
poke-docker-image:
|
||||||
name: Run the docker image
|
name: Run the docker image
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-latest
|
||||||
needs: [docker-image]
|
needs: [docker-image]
|
||||||
timeout-minutes: 2
|
timeout-minutes: 2
|
||||||
steps:
|
steps:
|
||||||
|
Loading…
Reference in New Issue
Block a user