Move DOCS_RELEASE_URL from ConfigMap to Deployment
This ensures ArgoCD sync triggers a pod rollout when the URL changes, since ConfigMap data changes don't restart pods automatically. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
103cc0deab
commit
82bcd935cd
4 changed files with 11 additions and 25 deletions
|
|
@ -174,20 +174,18 @@ jobs:
|
|||
echo ""
|
||||
echo "Release created successfully!"
|
||||
|
||||
- name: Update docs configmap
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Update docs deployment
|
||||
run: |
|
||||
VERSION="${{ steps.version.outputs.version }}"
|
||||
TARBALL="docs-${VERSION}.tar.gz"
|
||||
CONFIGMAP_FILE="argocd/manifests/docs/configmap.yaml"
|
||||
DEPLOYMENT_FILE="argocd/manifests/docs/deployment.yaml"
|
||||
RELEASE_URL="https://forge.ops.eblu.me/eblume/blumeops/releases/download/${VERSION}/${TARBALL}"
|
||||
|
||||
echo "Updating $CONFIGMAP_FILE with new release URL..."
|
||||
sed -i "s|DOCS_RELEASE_URL:.*|DOCS_RELEASE_URL: \"${RELEASE_URL}\"|" "$CONFIGMAP_FILE"
|
||||
echo "Updating $DEPLOYMENT_FILE with new release URL..."
|
||||
sed -i "s|value: \"https://forge.ops.eblu.me/eblume/blumeops/releases/download/[^\"]*\"|value: \"${RELEASE_URL}\"|" "$DEPLOYMENT_FILE"
|
||||
|
||||
echo "Updated configmap:"
|
||||
cat "$CONFIGMAP_FILE"
|
||||
echo "Updated deployment:"
|
||||
grep -A1 "DOCS_RELEASE_URL" "$DEPLOYMENT_FILE"
|
||||
|
||||
- name: Commit release changes
|
||||
env:
|
||||
|
|
@ -200,8 +198,8 @@ jobs:
|
|||
git config user.name "Forgejo Actions"
|
||||
git config user.email "actions@forge.ops.eblu.me"
|
||||
|
||||
# Stage configmap changes
|
||||
git add argocd/manifests/docs/configmap.yaml
|
||||
# Stage deployment changes
|
||||
git add argocd/manifests/docs/deployment.yaml
|
||||
|
||||
# Stage changelog changes if updated
|
||||
if [ "$CHANGELOG_UPDATED" = "true" ]; then
|
||||
|
|
@ -214,7 +212,6 @@ jobs:
|
|||
else
|
||||
git commit -m "Update docs release to $VERSION
|
||||
|
||||
- Updated configmap with new DOCS_RELEASE_URL
|
||||
$([ "$CHANGELOG_UPDATED" = "true" ] && echo "- Built changelog from towncrier fragments")
|
||||
|
||||
[skip ci]"
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: docs-config
|
||||
namespace: docs
|
||||
data:
|
||||
# BlumeOps docs release URL
|
||||
# Update this to deploy a new docs version
|
||||
DOCS_RELEASE_URL: "https://forge.ops.eblu.me/eblume/blumeops/releases/download/v1.0.14/docs-v1.0.14.tar.gz"
|
||||
|
|
@ -20,9 +20,9 @@ spec:
|
|||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: docs-config
|
||||
env:
|
||||
- name: DOCS_RELEASE_URL
|
||||
value: "https://forge.ops.eblu.me/eblume/blumeops/releases/download/v1.0.14/docs-v1.0.14.tar.gz"
|
||||
resources:
|
||||
requests:
|
||||
memory: "64Mi"
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||
kind: Kustomization
|
||||
namespace: docs
|
||||
resources:
|
||||
- configmap.yaml
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- ingress-tailscale.yaml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue