Update workflow to use server-infra
This commit is contained in:
@@ -54,11 +54,12 @@ jobs:
|
|||||||
if: gitea.event.workflow_run.conclusion == 'success' && gitea.event.workflow_run.event == 'push'
|
if: gitea.event.workflow_run.conclusion == 'success' && gitea.event.workflow_run.event == 'push'
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
needs: [test, docker]
|
needs: [test, docker]
|
||||||
|
env:
|
||||||
|
SERVER_INFRA_ROOT: /home/westfarn/Documents/repos/server-infra
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Deploy company_site prod
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
with:
|
"${SERVER_INFRA_ROOT}/scripts/deploy.sh" \
|
||||||
ref: ${{ gitea.event.workflow_run.head_sha }}
|
--app company_site \
|
||||||
|
--env prod \
|
||||||
- name: Deploy to live site
|
--ref "${{ gitea.event.workflow_run.head_sha }}"
|
||||||
run: bash scripts/deploy.sh "${{ gitea.workspace }}"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user