Switch deployment pipeline from GitLab Agent kubectl to FluxCD image automation. CI now only builds and pushes tagged images to Forgejo registry; FluxCD detects new tags and updates the deployment manifest. Fix Ecto.MultipleResultsError on /dashboard when a device has multiple Preseem access point records by using limit(1) instead of Repo.get_by.
14 lines
286 B
YAML
14 lines
286 B
YAML
apiVersion: image.toolkit.fluxcd.io/v1
|
|
kind: ImagePolicy
|
|
metadata:
|
|
name: towerops-web
|
|
namespace: flux-system
|
|
spec:
|
|
imageRepositoryRef:
|
|
name: towerops-web
|
|
filterTags:
|
|
pattern: '^main-(?P<ts>[0-9]+)-[a-f0-9]+$'
|
|
extract: '$ts'
|
|
policy:
|
|
numerical:
|
|
order: asc
|