mirror of
https://github.com/outbackdingo/talos-cloud-controller-manager.git
synced 2026-01-27 10:20:27 +00:00
The certificate’s DNS name cannot be set to kubernetes, because that name is reserved for the default service (kubernetes.default.svc) and is already used by the kube-api server daemons. Signed-off-by: Serge Logvinov <serge.logvinov@sinextra.dev>
49 lines
969 B
YAML
49 lines
969 B
YAML
name: Build check
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- 'cmd/**'
|
|
- 'pkg/**'
|
|
- 'Dockerfile'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
timeout-minutes: 10
|
|
runs-on: ubuntu-24.04
|
|
permissions:
|
|
contents: read
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
- name: Unshallow
|
|
run: git fetch --prune --unshallow
|
|
|
|
- name: Set up go
|
|
timeout-minutes: 5
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
|
|
- name: Lint
|
|
uses: golangci/golangci-lint-action@v8
|
|
with:
|
|
version: v2.4.0
|
|
args: --timeout=5m --config=.golangci.yml
|
|
- name: Build
|
|
timeout-minutes: 10
|
|
run: make images
|
|
env:
|
|
PLATFORM: "linux/amd64"
|
|
- name: Test
|
|
run: make unit
|