Template
Wire template CI/deploy to master and the app_catalog slug.
Bootstrap rewrites --app client_site to the catalog key (print_forge, etc). CI was still on main, so cloned clients would never hit server-infra.
This commit is contained in:
@@ -43,7 +43,7 @@ jobs:
|
||||
COMPOSE_DATABASE_URL DJANGO_ENV DJANGO_SECRET_KEY DJANGO_DEBUG \
|
||||
DJANGO_ALLOWED_HOSTS || true
|
||||
|
||||
PROJECT="client-ci-${{ gitea.sha }}"
|
||||
PROJECT="client_site-ci-${{ gitea.sha }}"
|
||||
cleanup() { docker compose -p "$PROJECT" down -v --remove-orphans || true; }
|
||||
trap cleanup EXIT
|
||||
|
||||
@@ -64,6 +64,7 @@ jobs:
|
||||
SERVER_INFRA_ROOT: /home/westfarn/Documents/repos/server-infra
|
||||
ANSIBLE_PRIVATE_KEY_FILE: /home/westfarn/.ssh/ansible_deploy
|
||||
steps:
|
||||
# --app MUST match server-infra app_catalog (this package slug).
|
||||
- name: Deploy client_site prod to all webservers
|
||||
run: |
|
||||
"$SERVER_INFRA_ROOT/scripts/deploy.sh" \
|
||||
|
||||
Reference in New Issue
Block a user