ci: use cluster-internal gitea and harbor

This commit is contained in:
test
2026-07-21 00:25:50 +08:00
parent 7648507c8c
commit a1f548c0dc

View File

@@ -5,7 +5,7 @@ on:
branches: [main]
env:
REGISTRY: 192.168.1.212:1180/library
REGISTRY: harbor-harbor-core.harbor.svc:8080/library
jobs:
build:
@@ -22,7 +22,7 @@ jobs:
rm -rf "$WORK"
mkdir -p "$WORK"
cd "$WORK"
git clone http://huchan:CJJhc%401314...@gitea.local/huchan/demo-frontend.git . 2>&1
git clone http://huchan:CJJhc%401314...@gitea-gitea.cicd.svc.cluster.local:3000/huchan/demo-frontend.git . 2>&1
ls -la
SHORT_SHA=${GITHUB_SHA::8}
@@ -53,7 +53,7 @@ jobs:
GITHUB_SHA: ${{ github.sha }}
- name: Login to Harbor
run: docker login 192.168.1.212:1180 -u admin -p "$HARBOR_PASSWORD"
run: docker login harbor-harbor-core.harbor.svc:8080 -u admin -p "$HARBOR_PASSWORD"
env:
HARBOR_PASSWORD: ${{ secrets.HARBOR_PASSWORD }}