ci: use kaniko git context - clone from gitea directly, no volume mounts
This commit is contained in:
parent
17c32f1ef5
commit
5a5e61a603
|
|
@ -7,37 +7,31 @@ jobs:
|
|||
env:
|
||||
DOCKER_HOST: tcp://172.17.0.1:2375
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Debug - verify workspace and volume
|
||||
- name: Build and push Backend (Kaniko)
|
||||
run: |
|
||||
echo "=== Workspace path ==="
|
||||
echo "${{ gitea.workspace }}"
|
||||
echo "=== Backend dir contents ==="
|
||||
ls -la "${{ gitea.workspace }}/backend/"
|
||||
echo "=== Test volume mount into a plain container ==="
|
||||
docker run --rm \
|
||||
-v "${{ gitea.workspace }}/backend":/test-mount \
|
||||
busybox \
|
||||
ls -la /test-mount/
|
||||
gcr.io/kaniko-project/executor:latest \
|
||||
--context=http://192.168.8.248:3000/deepkoluguri/chitfund.git \
|
||||
--context-sub-path=backend \
|
||||
--git=branch=master,single-branch=true \
|
||||
--destination=192.168.8.250:5000/chitfund-backend:latest \
|
||||
--insecure \
|
||||
--skip-tls-verify \
|
||||
--insecure-pull
|
||||
|
||||
build-frontend:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
DOCKER_HOST: tcp://172.17.0.1:2375
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Debug - verify workspace and volume
|
||||
- name: Build and push Frontend (Kaniko)
|
||||
run: |
|
||||
echo "=== Workspace path ==="
|
||||
echo "${{ gitea.workspace }}"
|
||||
echo "=== Frontend dir contents ==="
|
||||
ls -la "${{ gitea.workspace }}/luckychit/"
|
||||
echo "=== Test volume mount into a plain container ==="
|
||||
docker run --rm \
|
||||
-v "${{ gitea.workspace }}/luckychit":/test-mount \
|
||||
busybox \
|
||||
ls -la /test-mount/
|
||||
gcr.io/kaniko-project/executor:latest \
|
||||
--context=http://192.168.8.248:3000/deepkoluguri/chitfund.git \
|
||||
--context-sub-path=luckychit \
|
||||
--git=branch=master,single-branch=true \
|
||||
--destination=192.168.8.250:5000/chitfund-frontend:latest \
|
||||
--insecure \
|
||||
--skip-tls-verify \
|
||||
--insecure-pull
|
||||
Loading…
Reference in New Issue