2026-09-21 23:34:05 -05:00
|
|
|
when:
|
|
|
|
|
- event: push
|
|
|
|
|
branch: master
|
2026-09-22 00:26:25 -05:00
|
|
|
- event: [tag, manual, deployment]
|
2026-09-21 23:34:05 -05:00
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: build-and-push
|
|
|
|
|
image: woodpeckerci/plugin-docker-buildx:6.1.1
|
|
|
|
|
settings:
|
|
|
|
|
registry: registry.apps.millslan.net
|
|
|
|
|
repo: registry.apps.millslan.net/starship/coreid
|
|
|
|
|
tags: latest
|
|
|
|
|
platforms: linux/amd64
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
username:
|
|
|
|
|
from_secret: registry_username
|
|
|
|
|
password:
|
|
|
|
|
from_secret: registry_password
|
2026-09-22 00:19:52 -05:00
|
|
|
|
|
|
|
|
- name: deploy
|
|
|
|
|
# kubectl minor must stay within +/-1 of the cluster (k0s v1.36.3).
|
|
|
|
|
image: alpine/k8s:1.36.1
|
|
|
|
|
environment:
|
|
|
|
|
KUBECONFIG_B64:
|
|
|
|
|
from_secret: kubeconfig_b64
|
|
|
|
|
commands:
|
|
|
|
|
- echo "$KUBECONFIG_B64" | base64 -d > "$CI_WORKSPACE/.kubeconfig"
|
|
|
|
|
- chmod 600 "$CI_WORKSPACE/.kubeconfig"
|
|
|
|
|
- export KUBECONFIG="$CI_WORKSPACE/.kubeconfig"
|
|
|
|
|
- kubectl apply -f deploy/
|
|
|
|
|
- kubectl -n coreid rollout restart deployment/coreid
|
|
|
|
|
- kubectl -n coreid rollout status deployment/coreid --timeout=5m
|
|
|
|
|
when:
|
2026-09-22 00:26:25 -05:00
|
|
|
- event: [deployment]
|