ci: fix gitea registry publish login
This commit is contained in:
@@ -7,12 +7,14 @@ on:
|
|||||||
- main
|
- main
|
||||||
- codex/production-intelligence-terminal
|
- codex/production-intelligence-terminal
|
||||||
pull_request:
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-and-image:
|
test-and-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
REGISTRY_HOST: git.wilkensxl.de
|
REGISTRY_HOST: git.wilkensxl.de
|
||||||
|
REGISTRY_USERNAME: MrSphay
|
||||||
REGISTRY_NAMESPACE: mrsphay
|
REGISTRY_NAMESPACE: mrsphay
|
||||||
IMAGE_NAME: intelligence-terminal
|
IMAGE_NAME: intelligence-terminal
|
||||||
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
@@ -44,7 +46,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
image="${REGISTRY_HOST}/${REGISTRY_NAMESPACE}/${IMAGE_NAME}"
|
image="${REGISTRY_HOST}/${REGISTRY_NAMESPACE}/${IMAGE_NAME}"
|
||||||
date_tag="$(date -u +%Y%m%d)"
|
date_tag="$(date -u +%Y%m%d)"
|
||||||
echo "${REGISTRY_TOKEN}" | docker login "${REGISTRY_HOST}" -u "${REGISTRY_NAMESPACE}" --password-stdin
|
echo "${REGISTRY_TOKEN}" | docker login "${REGISTRY_HOST}" -u "${REGISTRY_USERNAME}" --password-stdin
|
||||||
docker tag "${image}:${GITHUB_SHA}" "${image}:latest"
|
docker tag "${image}:${GITHUB_SHA}" "${image}:latest"
|
||||||
docker tag "${image}:${GITHUB_SHA}" "${image}:${date_tag}"
|
docker tag "${image}:${GITHUB_SHA}" "${image}:${date_tag}"
|
||||||
docker push "${image}:${GITHUB_SHA}"
|
docker push "${image}:${GITHUB_SHA}"
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ For Pangolin or another reverse proxy, forward HTTP traffic to `intelligence-ter
|
|||||||
#### Build And Publish Your Gitea Image
|
#### Build And Publish Your Gitea Image
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker login git.wilkensxl.de
|
docker login git.wilkensxl.de -u MrSphay
|
||||||
docker build -t git.wilkensxl.de/mrsphay/intelligence-terminal:latest .
|
docker build -t git.wilkensxl.de/mrsphay/intelligence-terminal:latest .
|
||||||
docker tag git.wilkensxl.de/mrsphay/intelligence-terminal:latest git.wilkensxl.de/mrsphay/intelligence-terminal:20260516
|
docker tag git.wilkensxl.de/mrsphay/intelligence-terminal:latest git.wilkensxl.de/mrsphay/intelligence-terminal:20260516
|
||||||
docker push git.wilkensxl.de/mrsphay/intelligence-terminal:latest
|
docker push git.wilkensxl.de/mrsphay/intelligence-terminal:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user