Files
titan3d_react_node_sqllite/.gitea/workflows/ci.yaml
T
AI Bot 61ff98a64e
Build and Deploy / build-and-push (push) Failing after 23s
ci: replace actions/checkout with manual ssh clone
2026-09-01 12:28:23 +05:30

49 lines
1.5 KiB
YAML

name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code securely over SSH
run: |
rm -rf ./* ./.git* || true
mkdir -p ~/.ssh
echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -p 2222 git.digifox.live >> ~/.ssh/known_hosts
git clone -b master "ssh://git@git.digifox.live:2222/mohanki/titan3d_react_node_sqllite.git" .
- name: Login to Gitea Container Registry
uses: docker/login-action@v2
with:
registry: git.digifox.live
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Web
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: git.digifox.live/digifoxkurama/titan-web:latest
- name: Build and push API
uses: docker/build-push-action@v4
with:
context: ./backend
file: ./backend/Dockerfile
push: true
tags: git.digifox.live/digifoxkurama/titan-api:latest
- name: Trigger Coolify Deployment
run: |
curl --request POST \
--url 'https://deploy.digifox.live/api/v1/deploy?uuid=lbvulal59jsvjqi4rvfw8i4q' \
--header 'Authorization: Bearer 4|lL3pgQVbfLb6KtUByDLaswjP4Jccny8HMj5jrs0v4ace4e78'