ci: move container image to codeberg.org/gmcintire/towerops

The repo got renamed towerops-web → towerops on the Codeberg side,
so the published image follows: image is now
codeberg.org/gmcintire/towerops with the same main-<ts>-<sha> tag
pattern. Login URL is the hardcoded env.REGISTRY rather than
secrets.REGISTRY_URL so a stale URL secret can't push to the wrong
registry.
This commit is contained in:
Graham McIntire 2026-05-05 10:57:24 -05:00
parent cea0912ed1
commit 222253b7c8
2 changed files with 9 additions and 5 deletions

View file

@ -5,9 +5,13 @@ on:
branches:
- main
# Image hosted on Codeberg's container registry. The shared
# REGISTRY_USER / REGISTRY_PASSWORD secrets carry Codeberg credentials;
# login URL is the hardcoded env.REGISTRY rather than secrets.REGISTRY_URL
# so a stale URL secret can't push to the wrong registry.
env:
REGISTRY: git.mcintire.me
IMAGE_NAME: graham/towerops-web
REGISTRY: codeberg.org
IMAGE_NAME: gmcintire/towerops
jobs:
test-exunit:
@ -127,7 +131,7 @@ jobs:
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login \
--username "${{ secrets.REGISTRY_USER }}" \
--password-stdin \
"${{ secrets.REGISTRY_URL }}"
"${{ env.REGISTRY }}"
docker push "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${IMAGE_TAG}"
docker push "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:production"

View file

@ -32,7 +32,7 @@ spec:
type: RuntimeDefault
initContainers:
- name: migrate
image: git.mcintire.me/graham/towerops-web:main-1777403311-23304e1
image: codeberg.org/gmcintire/towerops:main-1777403311-23304e1
imagePullPolicy: IfNotPresent
command: ["/app/bin/migrate"]
securityContext:
@ -100,7 +100,7 @@ spec:
cpu: "500m"
containers:
- name: towerops
image: git.mcintire.me/graham/towerops-web:main-1777403311-23304e1
image: codeberg.org/gmcintire/towerops:main-1777403311-23304e1
imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false