Updated deploy to use act_runner keys
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
name: Deploy Company Site
|
||||
|
||||
# Deploy pipeline runs only on pushes to master (never on pull requests).
|
||||
# Deploy pipeline runs only on direct pushes to master (never on pull requests).
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: [Unit Tests]
|
||||
types: [completed]
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
@@ -18,7 +16,7 @@ jobs:
|
||||
run: |
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
||||
-
|
||||
|
||||
- name: Run unit tests
|
||||
env:
|
||||
DJANGO_ENV: dev
|
||||
@@ -48,7 +46,6 @@ jobs:
|
||||
docker compose down
|
||||
|
||||
deploy:
|
||||
if: gitea.event.workflow_run.conclusion == 'success' && gitea.event.workflow_run.event == 'push'
|
||||
runs-on: self-hosted
|
||||
needs: [test, docker]
|
||||
env:
|
||||
@@ -60,4 +57,4 @@ jobs:
|
||||
"${SERVER_INFRA_ROOT}/scripts/deploy.sh" \
|
||||
--app company_site \
|
||||
--env prod \
|
||||
--ref "${{ gitea.event.workflow_run.head_sha }}"
|
||||
--ref "${{ gitea.sha }}"
|
||||
|
||||
Reference in New Issue
Block a user