fix container registry push: publish gitea port 3000, use homelab/ org prefix
Push steps were failing because (1) gitea port 3000 wasn't published to the host — docker daemon couldn't reach localhost:3000, and (2) the fhirworx/ namespace doesn't exist in Gitea — images must go under homelab/ to match the org.
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
#
|
#
|
||||||
# Image naming:
|
# Image naming:
|
||||||
# fhirworx/<service>:<short-sha> (local tag, used by compose)
|
# fhirworx/<service>:<short-sha> (local tag, used by compose)
|
||||||
# localhost:3000/fhirworx/<service>:* (registry push only)
|
# localhost:3000/homelab/<service>:* (registry push only)
|
||||||
#
|
#
|
||||||
# The deploy step writes COMMIT_SHA=<short-sha> into .env so
|
# The deploy step writes COMMIT_SHA=<short-sha> into .env so
|
||||||
# compose.yml resolves fhirworx/<svc>:${COMMIT_SHA:-latest} to
|
# compose.yml resolves fhirworx/<svc>:${COMMIT_SHA:-latest} to
|
||||||
@@ -71,10 +71,10 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- TAG=${CI_COMMIT_SHA:0:8}
|
- TAG=${CI_COMMIT_SHA:0:8}
|
||||||
- echo "$REGISTRY_PASS" | docker login localhost:3000 -u "$REGISTRY_USER" --password-stdin
|
- echo "$REGISTRY_PASS" | docker login localhost:3000 -u "$REGISTRY_USER" --password-stdin
|
||||||
- docker tag fhirworx/notebooks:$TAG localhost:3000/fhirworx/notebooks:$TAG
|
- docker tag fhirworx/notebooks:$TAG localhost:3000/homelab/notebooks:$TAG
|
||||||
- docker push localhost:3000/fhirworx/notebooks:$TAG
|
- docker push localhost:3000/homelab/notebooks:$TAG
|
||||||
- docker tag fhirworx/notebooks:latest localhost:3000/fhirworx/notebooks:latest
|
- docker tag fhirworx/notebooks:latest localhost:3000/homelab/notebooks:latest
|
||||||
- docker push localhost:3000/fhirworx/notebooks:latest
|
- docker push localhost:3000/homelab/notebooks:latest
|
||||||
depends_on:
|
depends_on:
|
||||||
- scan-notebooks
|
- scan-notebooks
|
||||||
|
|
||||||
@@ -111,10 +111,10 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- TAG=${CI_COMMIT_SHA:0:8}
|
- TAG=${CI_COMMIT_SHA:0:8}
|
||||||
- echo "$REGISTRY_PASS" | docker login localhost:3000 -u "$REGISTRY_USER" --password-stdin
|
- echo "$REGISTRY_PASS" | docker login localhost:3000 -u "$REGISTRY_USER" --password-stdin
|
||||||
- docker tag fhirworx/zotero:$TAG localhost:3000/fhirworx/zotero:$TAG
|
- docker tag fhirworx/zotero:$TAG localhost:3000/homelab/zotero:$TAG
|
||||||
- docker push localhost:3000/fhirworx/zotero:$TAG
|
- docker push localhost:3000/homelab/zotero:$TAG
|
||||||
- docker tag fhirworx/zotero:latest localhost:3000/fhirworx/zotero:latest
|
- docker tag fhirworx/zotero:latest localhost:3000/homelab/zotero:latest
|
||||||
- docker push localhost:3000/fhirworx/zotero:latest
|
- docker push localhost:3000/homelab/zotero:latest
|
||||||
depends_on:
|
depends_on:
|
||||||
- scan-zotero
|
- scan-zotero
|
||||||
|
|
||||||
@@ -145,10 +145,10 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- TAG=${CI_COMMIT_SHA:0:8}
|
- TAG=${CI_COMMIT_SHA:0:8}
|
||||||
- echo "$REGISTRY_PASS" | docker login localhost:3000 -u "$REGISTRY_USER" --password-stdin
|
- echo "$REGISTRY_PASS" | docker login localhost:3000 -u "$REGISTRY_USER" --password-stdin
|
||||||
- docker tag fhirworx/docs:$TAG localhost:3000/fhirworx/docs:$TAG
|
- docker tag fhirworx/docs:$TAG localhost:3000/homelab/docs:$TAG
|
||||||
- docker push localhost:3000/fhirworx/docs:$TAG
|
- docker push localhost:3000/homelab/docs:$TAG
|
||||||
- docker tag fhirworx/docs:latest localhost:3000/fhirworx/docs:latest
|
- docker tag fhirworx/docs:latest localhost:3000/homelab/docs:latest
|
||||||
- docker push localhost:3000/fhirworx/docs:latest
|
- docker push localhost:3000/homelab/docs:latest
|
||||||
depends_on:
|
depends_on:
|
||||||
- build-docs
|
- build-docs
|
||||||
|
|
||||||
|
|||||||
@@ -64,10 +64,10 @@ steps:
|
|||||||
- echo "$REGISTRY_PASS" | docker login localhost:3000 -u "$REGISTRY_USER" --password-stdin
|
- echo "$REGISTRY_PASS" | docker login localhost:3000 -u "$REGISTRY_USER" --password-stdin
|
||||||
- |
|
- |
|
||||||
for SVC in notebooks zotero docs; do
|
for SVC in notebooks zotero docs; do
|
||||||
docker tag fhirworx/$SVC:$TAG localhost:3000/fhirworx/$SVC:$TAG
|
docker tag fhirworx/$SVC:$TAG localhost:3000/homelab/$SVC:$TAG
|
||||||
docker push localhost:3000/fhirworx/$SVC:$TAG
|
docker push localhost:3000/homelab/$SVC:$TAG
|
||||||
docker tag fhirworx/$SVC:latest localhost:3000/fhirworx/$SVC:latest
|
docker tag fhirworx/$SVC:latest localhost:3000/homelab/$SVC:latest
|
||||||
docker push localhost:3000/fhirworx/$SVC:latest
|
docker push localhost:3000/homelab/$SVC:latest
|
||||||
done
|
done
|
||||||
depends_on:
|
depends_on:
|
||||||
- scan-notebooks
|
- scan-notebooks
|
||||||
|
|||||||
@@ -119,6 +119,7 @@ services:
|
|||||||
- ./styles/gitea.css:/var/lib/gitea/custom/public/assets/css/theme-throwback.css:ro
|
- ./styles/gitea.css:/var/lib/gitea/custom/public/assets/css/theme-throwback.css:ro
|
||||||
ports:
|
ports:
|
||||||
- "2222:2222"
|
- "2222:2222"
|
||||||
|
- "3000:3000"
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
- rustfs
|
- rustfs
|
||||||
|
|||||||
Reference in New Issue
Block a user