Compare commits

...

9 Commits

Author SHA1 Message Date
test
9ef3ec16b3 ci: trigger to test harbor
Some checks failed
Build & Deploy / build (push) Has been cancelled
2026-07-21 13:41:59 +08:00
test
dec27f8115 ci: use registry user 2026-07-21 00:41:36 +08:00
test
da08178d8b ci: re-trigger with registry user password 2026-07-21 00:38:47 +08:00
test
b0c7c25970 ci: re-trigger with new harbor secret 2026-07-21 00:35:00 +08:00
test
6bea24b757 ci: re-trigger 2026-07-21 00:31:36 +08:00
test
5d3f1ef48b ci: use registry:5000 for harbor 2026-07-21 00:28:41 +08:00
test
a1f548c0dc ci: use cluster-internal gitea and harbor 2026-07-21 00:25:50 +08:00
test
7648507c8c ci: add set -ex for debug 2026-07-21 00:23:27 +08:00
test
d5e77ae24e ci: update to cluster gitea + trivy scan 2026-07-21 00:21:39 +08:00

View File

@@ -5,7 +5,7 @@ on:
branches: [main]
env:
REGISTRY: 192.168.1.212:1180/library
REGISTRY: harbor-harbor-registry.harbor.svc:5000/library
jobs:
build:
@@ -17,11 +17,12 @@ jobs:
- name: Generate demo content + Dockerfile
run: |
set -ex
WORK=/root/.cache/demo-frontend
rm -rf "$WORK"
mkdir -p "$WORK"
cd "$WORK"
git clone http://joe:${GITEA_TOKEN}@192.168.1.212:3000/joe/demo-frontend.git .
git clone http://huchan:CJJhc%401314...@gitea-gitea.cicd.svc.cluster.local:3000/huchan/demo-frontend.git .
SHORT_SHA=${GITHUB_SHA::8}
cat > package.json <<EOF
@@ -39,7 +40,6 @@ jobs:
HEALTHCHECK --interval=30s --timeout=3s CMD wget -q -O- http://localhost/healthz || exit 1
EOF
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITHUB_SHA: ${{ github.sha }}
- name: Build frontend
@@ -51,7 +51,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 $REGISTRY -u harbor_registry_user -p "$HARBOR_PASSWORD"
env:
HARBOR_PASSWORD: ${{ secrets.HARBOR_PASSWORD }}
@@ -82,4 +82,3 @@ jobs:
echo "✓ Pushed tag ${SHORT}"
env:
GITHUB_SHA: ${{ github.sha }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}