ci: use cluster-internal gitea and harbor
This commit is contained in:
@@ -5,7 +5,7 @@ on:
|
|||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: 192.168.1.212:1180/library
|
REGISTRY: harbor-harbor-core.harbor.svc:8080/library
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
rm -rf "$WORK"
|
rm -rf "$WORK"
|
||||||
mkdir -p "$WORK"
|
mkdir -p "$WORK"
|
||||||
cd "$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
|
ls -la
|
||||||
|
|
||||||
SHORT_SHA=${GITHUB_SHA::8}
|
SHORT_SHA=${GITHUB_SHA::8}
|
||||||
@@ -53,7 +53,7 @@ jobs:
|
|||||||
GITHUB_SHA: ${{ github.sha }}
|
GITHUB_SHA: ${{ github.sha }}
|
||||||
|
|
||||||
- name: Login to Harbor
|
- 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:
|
env:
|
||||||
HARBOR_PASSWORD: ${{ secrets.HARBOR_PASSWORD }}
|
HARBOR_PASSWORD: ${{ secrets.HARBOR_PASSWORD }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user