name: Build and Deploy Chitfund on: [push] jobs: build-backend: runs-on: ubuntu-latest container: image: gcr.io/kaniko-project/executor:debug steps: - name: Checkout uses: actions/checkout@v3 - name: Build and push Backend run: | /kaniko/executor \ --context=${{ gitea.workspace }}/backend \ --dockerfile=${{ gitea.workspace }}/backend/Dockerfile \ --destination=192.168.8.250:5000/chitfund-backend:latest \ --insecure \ --skip-tls-verify \ --label org.opencontainers.image.source=${{ gitea.repository_url }} build-frontend: runs-on: ubuntu-latest container: image: gcr.io/kaniko-project/executor:debug steps: - name: Checkout uses: actions/checkout@v3 - name: Build and push Frontend run: | /kaniko/executor \ --context=${{ gitea.workspace }}/luckychit \ --dockerfile=${{ gitea.workspace }}/luckychit/Dockerfile \ --destination=192.168.8.250:5000/chitfund-frontend:latest \ --insecure \ --skip-tls-verify