Update workflow
Build and Push to Digital Ocean Container Registry / build-and-push (push) Successful in 4m6s
Build and Push to Digital Ocean Container Registry / migrate (push) Successful in 1m50s

This commit is contained in:
NeilClack
2026-09-11 15:36:03 -05:00
parent 960673bbc6
commit 64715c91d3
+11 -5
View File
@@ -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