bootstrap
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
name: CI
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
GOPATH: /go_path
|
||||
GOCACHE: /go_cache
|
||||
RUNNER_TOOL_CACHE: /toolcache
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: test
|
||||
runs-on:
|
||||
- ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
- name: Setup go
|
||||
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
check-latest: true
|
||||
- name: Create cache key
|
||||
id: hash-go
|
||||
run: echo "hash=$(sha256sum go.mod go.sum | sha256sum | cut -d' ' -f1)" >> "$GITHUB_OUTPUT"
|
||||
- name: cache go
|
||||
id: cache-go
|
||||
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5
|
||||
with:
|
||||
path: |
|
||||
/go_path
|
||||
/go_cache
|
||||
key: go_path-${{ steps.hash-go.outputs.hash }}
|
||||
restore-keys: |-
|
||||
go_cache-${{ steps.hash-go.outputs.hash }}
|
||||
- name: build
|
||||
run: make build
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
FROM docker.io/library/golang:1.25-alpine@sha256:04d017a27c481185c169884328a5761d052910fdced8c3b8edd686474efdf59b AS build
|
||||
|
||||
ARG GOARCH=amd64
|
||||
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${GOARCH} \
|
||||
go build -trimpath -ldflags="-s -w" -o main .
|
||||
|
||||
FROM gcr.io/distroless/static-debian12@sha256:20bc6c0bc4d625a22a8fde3e55f6515709b32055ef8fb9cfbddaa06d1760f838
|
||||
COPY --from=build /app/main /
|
||||
CMD ["/main"]
|
||||
@@ -1,2 +1,5 @@
|
||||
# authentik-kubernetes-operator
|
||||
|
||||
Authentik Kubernetes Operator allows to manage Authentik resources directly in Kubernetes using Custom Kubernetes Resources.
|
||||
|
||||
## Features
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
module gitea.t000-n.de/t.behrendt/authentik-kubernetes-operator
|
||||
|
||||
go 1.26.3
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["local>t.behrendt/renovate-configs:action"],
|
||||
"packageRules": [
|
||||
{
|
||||
"matchPackageNames": ["golang", "gomod", "go"],
|
||||
"groupName": "go version",
|
||||
"matchUpdateTypes": ["major", "minor", "patch"]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user