chitfund/.gitea/workflows/build.yaml

43 lines
1.3 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: Checkout
uses: actions/checkout@v3
- name: Build and push Backend (Kaniko)
run: |
WORKSPACE="${{ gitea.workspace }}"
docker run --rm \
-v "${WORKSPACE}:/repo" \
gcr.io/kaniko-project/executor:latest \
--context=dir:///repo/backend \
--dockerfile=/repo/backend/Dockerfile \
--destination=192.168.8.250:5000/chitfund-backend:latest \
--insecure \
--skip-tls-verify
build-frontend:
runs-on: ubuntu-latest
env:
DOCKER_HOST: tcp://172.17.0.1:2375
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build and push Frontend (Kaniko)
run: |
WORKSPACE="${{ gitea.workspace }}"
docker run --rm \
-v "${WORKSPACE}:/repo" \
gcr.io/kaniko-project/executor:latest \
--context=dir:///repo/luckychit \
--dockerfile=/repo/luckychit/Dockerfile \
--destination=192.168.8.250:5000/chitfund-frontend:latest \
--insecure \
--skip-tls-verify