Adding Actions workflow to test stack
This commit is contained in:
parent
e0388c0585
commit
9e4e295561
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@ -10,9 +10,7 @@ jobs:
|
|||||||
run-lint:
|
run-lint:
|
||||||
name: Lint
|
name: Lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Check out the codebase.
|
- name: Check out the codebase.
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
19
.github/workflows/stack-healthcheck.yml
vendored
Normal file
19
.github/workflows/stack-healthcheck.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
name: Stack Healthcheck
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: Test Stack
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Deploy the stack
|
||||||
|
run: docker-compose up -d
|
||||||
|
|
||||||
|
- name: Test PGAdmin
|
||||||
|
run: docker run --network container:webapp-frontend appropriate/curl -s --retry 10 --retry-connrefused http://localhost:3001/
|
@ -6,13 +6,13 @@ x-common:
|
|||||||
POSTGRES_USER: postgres
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: DaVinci
|
POSTGRES_PASSWORD: DaVinci
|
||||||
TZ: America/Chicago
|
TZ: America/Chicago
|
||||||
POSTGRES_LOCATION: &db-location "???:/var/lib/postgresql/data"
|
POSTGRES_LOCATION: &db-location "~/db:/var/lib/postgresql/data"
|
||||||
backup: &backup-environment
|
backup: &backup-environment
|
||||||
SCHEDULE: "@daily"
|
SCHEDULE: "@daily"
|
||||||
BACKUP_KEEP_DAYS: 7
|
BACKUP_KEEP_DAYS: 7
|
||||||
BACKUP_KEEP_WEEKS: 4
|
BACKUP_KEEP_WEEKS: 4
|
||||||
BACKUP_KEEP_MONTHS: 6
|
BACKUP_KEEP_MONTHS: 6
|
||||||
BACKUP_LOCATION: &bk-location "???:/backups"
|
BACKUP_LOCATION: &bk-location "~/backups:/backups"
|
||||||
admin: &admin-environment
|
admin: &admin-environment
|
||||||
PGADMIN_DEFAULT_EMAIL: admin@admin.com
|
PGADMIN_DEFAULT_EMAIL: admin@admin.com
|
||||||
PGADMIN_DEFAULT_PASSWORD: root
|
PGADMIN_DEFAULT_PASSWORD: root
|
||||||
|
Loading…
Reference in New Issue
Block a user