ci: fix workspace path - use gitea.workspace expression instead of env var
This commit is contained in:
parent
a74a035912
commit
2dbf55bff1
|
|
@ -13,10 +13,10 @@ jobs:
|
||||||
- name: Build and push Backend (Kaniko)
|
- name: Build and push Backend (Kaniko)
|
||||||
run: |
|
run: |
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-v $GITEA_WORKSPACE:/workspace \
|
-v "${{ gitea.workspace }}/backend":/workspace \
|
||||||
gcr.io/kaniko-project/executor:latest \
|
gcr.io/kaniko-project/executor:latest \
|
||||||
--context=/workspace/backend \
|
--context=dir:///workspace \
|
||||||
--dockerfile=/workspace/backend/Dockerfile \
|
--dockerfile=/workspace/Dockerfile \
|
||||||
--destination=192.168.8.250:5000/chitfund-backend:latest \
|
--destination=192.168.8.250:5000/chitfund-backend:latest \
|
||||||
--insecure \
|
--insecure \
|
||||||
--skip-tls-verify
|
--skip-tls-verify
|
||||||
|
|
@ -32,10 +32,10 @@ jobs:
|
||||||
- name: Build and push Frontend (Kaniko)
|
- name: Build and push Frontend (Kaniko)
|
||||||
run: |
|
run: |
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-v $GITEA_WORKSPACE:/workspace \
|
-v "${{ gitea.workspace }}/luckychit":/workspace \
|
||||||
gcr.io/kaniko-project/executor:latest \
|
gcr.io/kaniko-project/executor:latest \
|
||||||
--context=/workspace/luckychit \
|
--context=dir:///workspace \
|
||||||
--dockerfile=/workspace/luckychit/Dockerfile \
|
--dockerfile=/workspace/Dockerfile \
|
||||||
--destination=192.168.8.250:5000/chitfund-frontend:latest \
|
--destination=192.168.8.250:5000/chitfund-frontend:latest \
|
||||||
--insecure \
|
--insecure \
|
||||||
--skip-tls-verify
|
--skip-tls-verify
|
||||||
Loading…
Reference in New Issue