ci: use cluster-internal gitea and harbor
This commit is contained in:
@@ -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 }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user