ci: fix kaniko context - mount full repo at /repo, point context at subdirs
This commit is contained in:
parent
2dbf55bff1
commit
15a7234fa4
|
|
@ -12,11 +12,12 @@ jobs:
|
||||||
|
|
||||||
- name: Build and push Backend (Kaniko)
|
- name: Build and push Backend (Kaniko)
|
||||||
run: |
|
run: |
|
||||||
|
WORKSPACE="${{ gitea.workspace }}"
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-v "${{ gitea.workspace }}/backend":/workspace \
|
-v "${WORKSPACE}:/repo" \
|
||||||
gcr.io/kaniko-project/executor:latest \
|
gcr.io/kaniko-project/executor:latest \
|
||||||
--context=dir:///workspace \
|
--context=dir:///repo/backend \
|
||||||
--dockerfile=/workspace/Dockerfile \
|
--dockerfile=/repo/backend/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
|
||||||
|
|
@ -31,11 +32,12 @@ jobs:
|
||||||
|
|
||||||
- name: Build and push Frontend (Kaniko)
|
- name: Build and push Frontend (Kaniko)
|
||||||
run: |
|
run: |
|
||||||
|
WORKSPACE="${{ gitea.workspace }}"
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-v "${{ gitea.workspace }}/luckychit":/workspace \
|
-v "${WORKSPACE}:/repo" \
|
||||||
gcr.io/kaniko-project/executor:latest \
|
gcr.io/kaniko-project/executor:latest \
|
||||||
--context=dir:///workspace \
|
--context=dir:///repo/luckychit \
|
||||||
--dockerfile=/workspace/Dockerfile \
|
--dockerfile=/repo/luckychit/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