chore(ci): move prop and prop-grid-rs images to codeberg
Both build workflows now push to codeberg.org/gmcintire/<image> alongside the runtime base. Login URL is the hardcoded env.REGISTRY rather than secrets.REGISTRY_URL so a stale/wrong URL secret can't silently push to the wrong registry. k8s deployment manifests still reference git.mcintire.me images and need a follow-up bump to codeberg-side tags after the next CI build lands an image at codeberg.org.
This commit is contained in:
parent
4f4d9e44fc
commit
8a9c0ba67f
2 changed files with 11 additions and 6 deletions
|
|
@ -10,9 +10,10 @@ on:
|
||||||
- 'rust/prop_grid_rs/**'
|
- 'rust/prop_grid_rs/**'
|
||||||
- '.forgejo/workflows/build-grid-rs.yaml'
|
- '.forgejo/workflows/build-grid-rs.yaml'
|
||||||
|
|
||||||
|
# Hosted on Codeberg's container registry. Same setup as build.yaml.
|
||||||
env:
|
env:
|
||||||
REGISTRY: git.mcintire.me
|
REGISTRY: codeberg.org
|
||||||
IMAGE_NAME: graham/prop-grid-rs
|
IMAGE_NAME: gmcintire/prop-grid-rs
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
|
@ -90,7 +91,7 @@ jobs:
|
||||||
max_attempts=3
|
max_attempts=3
|
||||||
while : ; do
|
while : ; do
|
||||||
if echo "${{ secrets.REGISTRY_PASSWORD }}" | \
|
if echo "${{ secrets.REGISTRY_PASSWORD }}" | \
|
||||||
docker login "${{ secrets.REGISTRY_URL }}" \
|
docker login "${{ env.REGISTRY }}" \
|
||||||
-u "${{ secrets.REGISTRY_USER }}" \
|
-u "${{ secrets.REGISTRY_USER }}" \
|
||||||
--password-stdin; then
|
--password-stdin; then
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,13 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
|
# Hosted on Codeberg's container registry. The shared
|
||||||
|
# REGISTRY_USER / REGISTRY_PASSWORD secrets carry the Codeberg
|
||||||
|
# token; URL is hardcoded so a wrong/missing secrets.REGISTRY_URL
|
||||||
|
# can't push to the wrong registry.
|
||||||
env:
|
env:
|
||||||
REGISTRY: git.mcintire.me
|
REGISTRY: codeberg.org
|
||||||
IMAGE_NAME: graham/prop
|
IMAGE_NAME: gmcintire/prop
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
|
@ -89,7 +93,7 @@ jobs:
|
||||||
max_attempts=3
|
max_attempts=3
|
||||||
while : ; do
|
while : ; do
|
||||||
if echo "${{ secrets.REGISTRY_PASSWORD }}" | \
|
if echo "${{ secrets.REGISTRY_PASSWORD }}" | \
|
||||||
docker login "${{ secrets.REGISTRY_URL }}" \
|
docker login "${{ env.REGISTRY }}" \
|
||||||
-u "${{ secrets.REGISTRY_USER }}" \
|
-u "${{ secrets.REGISTRY_USER }}" \
|
||||||
--password-stdin; then
|
--password-stdin; then
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue