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:
Erich Blume 2026-02-03 17:23:52 -08:00
commit 82bcd935cd
4 changed files with 11 additions and 25 deletions

View file

@ -174,20 +174,18 @@ jobs:
echo "" echo ""
echo "Release created successfully!" echo "Release created successfully!"
- name: Update docs configmap - name: Update docs deployment
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
VERSION="${{ steps.version.outputs.version }}" VERSION="${{ steps.version.outputs.version }}"
TARBALL="docs-${VERSION}.tar.gz" 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}" RELEASE_URL="https://forge.ops.eblu.me/eblume/blumeops/releases/download/${VERSION}/${TARBALL}"
echo "Updating $CONFIGMAP_FILE with new release URL..." echo "Updating $DEPLOYMENT_FILE with new release URL..."
sed -i "s|DOCS_RELEASE_URL:.*|DOCS_RELEASE_URL: \"${RELEASE_URL}\"|" "$CONFIGMAP_FILE" sed -i "s|value: \"https://forge.ops.eblu.me/eblume/blumeops/releases/download/[^\"]*\"|value: \"${RELEASE_URL}\"|" "$DEPLOYMENT_FILE"
echo "Updated configmap:" echo "Updated deployment:"
cat "$CONFIGMAP_FILE" grep -A1 "DOCS_RELEASE_URL" "$DEPLOYMENT_FILE"
- name: Commit release changes - name: Commit release changes
env: env:
@ -200,8 +198,8 @@ jobs:
git config user.name "Forgejo Actions" git config user.name "Forgejo Actions"
git config user.email "actions@forge.ops.eblu.me" git config user.email "actions@forge.ops.eblu.me"
# Stage configmap changes # Stage deployment changes
git add argocd/manifests/docs/configmap.yaml git add argocd/manifests/docs/deployment.yaml
# Stage changelog changes if updated # Stage changelog changes if updated
if [ "$CHANGELOG_UPDATED" = "true" ]; then if [ "$CHANGELOG_UPDATED" = "true" ]; then
@ -214,7 +212,6 @@ jobs:
else else
git commit -m "Update docs release to $VERSION git commit -m "Update docs release to $VERSION
- Updated configmap with new DOCS_RELEASE_URL
$([ "$CHANGELOG_UPDATED" = "true" ] && echo "- Built changelog from towncrier fragments") $([ "$CHANGELOG_UPDATED" = "true" ] && echo "- Built changelog from towncrier fragments")
[skip ci]" [skip ci]"

View file

@ -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"

View file

@ -20,9 +20,9 @@ spec:
ports: ports:
- containerPort: 80 - containerPort: 80
name: http name: http
envFrom: env:
- configMapRef: - name: DOCS_RELEASE_URL
name: docs-config value: "https://forge.ops.eblu.me/eblume/blumeops/releases/download/v1.0.14/docs-v1.0.14.tar.gz"
resources: resources:
requests: requests:
memory: "64Mi" memory: "64Mi"

View file

@ -3,7 +3,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
namespace: docs namespace: docs
resources: resources:
- configmap.yaml
- deployment.yaml - deployment.yaml
- service.yaml - service.yaml
- ingress-tailscale.yaml - ingress-tailscale.yaml