From 64715c91d3f614c8ce83eee954fab359e0d6327e Mon Sep 17 00:00:00 2001 From: NeilClack Date: Fri, 11 Sep 2026 15:36:03 -0500 Subject: [PATCH] Update workflow --- .gitea/workflows/deploy.yaml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 76e61b0..a9b65ad 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -6,12 +6,15 @@ on: jobs: build-and-push: - runs-on: build-server + runs-on: portal-builder steps: - name: Checkout run: | - git clone ssh://git@gitea.radiantwavetech.com:2222/RadiantWaveTech/portal.git . + rm -rf ./* ./.[!.]* 2>/dev/null || true + git config --global http.extraheader "Authorization: token ${{ github.token }}" + git clone --branch "${{ gitea.ref_name }}" \ + "${{ gitea.server_url }}/${{ gitea.repository }}.git" . - name: Build image run: | @@ -34,12 +37,15 @@ jobs: migrate: needs: build-and-push - runs-on: build-server + runs-on: portal-builder steps: - name: Checkout run: | - git clone ssh://git@gitea.radiantwavetech.com:2222/RadiantWaveTech/portal.git . + rm -rf ./* ./.[!.]* 2>/dev/null || true + git config --global http.extraheader "Authorization: token ${{ github.token }}" + git clone --branch "${{ gitea.ref_name }}" \ + "${{ gitea.server_url }}/${{ gitea.repository }}.git" . - name: Setup Node uses: https://github.com/actions/setup-node@v4 @@ -53,4 +59,4 @@ jobs: env: DATABASE_URL: ${{ secrets.DATABASE_URL }} NODE_EXTRA_CA_CERTS: ./digital-ocean.crt - run: npm run deploy + run: npm run deploy \ No newline at end of file