chitfund/.gitea/workflows/build.yaml

37 lines
1.2 KiB
YAML

name: Build and Deploy Chitfund
on: [push]
jobs:
build-backend:
runs-on: ubuntu-latest
env:
DOCKER_HOST: tcp://172.17.0.1:2375
steps:
- name: Build and push Backend (Kaniko)
run: |
docker run --rm \
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: Build and push Frontend (Kaniko)
run: |
docker run --rm \
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