5 Commits
0.02 ... main

Author SHA1 Message Date
21468b9f78 deploy: fix image name to match Gitea repository name
All checks were successful
Deploy to K8s / deploy (push) Successful in 12s
Build and Push / build (push) Successful in 5s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 14:05:34 +01:00
e61e397229 deploy: update image reference to use full Gitea registry path
All checks were successful
Build and Push / build (push) Successful in 6s
Deploy to K8s / deploy (push) Successful in 7s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 13:58:19 +01:00
12969b137e ci: also tag built image as latest
All checks were successful
Deploy to K8s / deploy (push) Successful in 11s
Build and Push / build (push) Successful in 5s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 13:46:49 +01:00
2c4126eac8 deploy: fix ExternalSecret namespace to gateway-cert-operator-system
All checks were successful
Deploy to K8s / deploy (push) Successful in 11s
Build and Push / build (push) Successful in 4s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 13:42:38 +01:00
f7353d48f4 deploy: add Gitea registry pull secret and ExternalSecret
All checks were successful
Deploy to K8s / deploy (push) Successful in 8s
Build and Push / build (push) Successful in 5s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 13:37:16 +01:00
6 changed files with 37 additions and 4 deletions

1
.claude/commands/ship.md Normal file
View File

@@ -0,0 +1 @@
Commit all staged and unstaged changes into git, assign the next tag in sequence, then ask for confirmation before pushing.

View File

@@ -30,10 +30,12 @@ jobs:
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
TAG=${{ inputs.tag }}
fi
IMAGE=gitea.home.hrajfrisbee.cz/${{ github.repository }}:$TAG
REPO=gitea.home.hrajfrisbee.cz/${{ github.repository }}
docker build -f Dockerfile \
--build-arg GIT_TAG=$TAG \
--build-arg GIT_COMMIT=${{ github.sha }} \
--build-arg BUILD_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ) \
-t $IMAGE .
docker push $IMAGE
-t $REPO:$TAG \
-t $REPO:latest .
docker push $REPO:$TAG
docker push $REPO:latest

5
CLAUDE.md Normal file
View File

@@ -0,0 +1,5 @@
# Claude Instructions
## Git
- Always ask for confirmation before running `git push`.

View File

@@ -17,6 +17,8 @@ spec:
app.kubernetes.io/name: gateway-cert-operator
app.kubernetes.io/component: operator
spec:
imagePullSecrets:
- name: gitea-registry
serviceAccountName: gateway-cert-operator
terminationGracePeriodSeconds: 10
securityContext:
@@ -25,7 +27,7 @@ spec:
type: RuntimeDefault
containers:
- name: manager
image: gateway-cert-operator:latest
image: gitea.home.hrajfrisbee.cz/kacerr/gatewayapi-certificates-operator:latest
args:
- --metrics-bind-address=:8080
- --health-probe-bind-address=:8081

View File

@@ -0,0 +1,22 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: gitea-registry
namespace: gateway-cert-operator-system
spec:
refreshInterval: 1h
secretStoreRef:
name: vault-backend
kind: ClusterSecretStore
target:
name: gitea-registry
creationPolicy: Owner
template:
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: "{{ .token }}"
data:
- secretKey: token
remoteRef:
key: k8s_home/gitea/container-registry
property: token

View File

@@ -3,6 +3,7 @@ kind: Kustomization
resources:
- namespace_gateway-cert-operator-system.yaml
- externalsecret_gitea-registry.yaml
- serviceaccount_gateway-cert-operator.yaml
- clusterrole_gateway-cert-operator.yaml
- clusterrolebinding_gateway-cert-operator.yaml