Skip to content

Commit 2b76144

Browse files
committed
split CI steps to match brainspread step names
`Prepare .env for CI` becomes `Copy environment file` + `Generate secret key`. `Create volumes and bring up db` becomes `Create volumes` + `Start database`. The DB-up step is unique to oscarr's flow (brainspread folds it into its just recipes); the rest now mirror brainspread byte-for-byte.
1 parent dfc87bf commit 2b76144

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,13 @@ jobs:
5454
- name: Set up Docker Buildx
5555
uses: docker/setup-buildx-action@v3
5656

57-
- name: Prepare .env for CI
57+
- name: Copy environment file
58+
working-directory: ./packages/django-app
59+
run: just copy-env
60+
61+
- name: Generate secret key
5862
working-directory: ./packages/django-app
5963
run: |
60-
just copy-env
6164
SECRET_KEY=$(python3 -c 'import secrets, string; chars = string.ascii_letters + string.digits + "!@#$%^&*(-_=+)"; print("".join(secrets.choice(chars) for _ in range(50)))')
6265
sed -i "s|SECRET_KEY_GOES_HERE|${SECRET_KEY}|" .env
6366
sed -i "s|^DISCORD_TOKEN=.*|DISCORD_TOKEN=ci-test-token|" .env
@@ -75,10 +78,13 @@ jobs:
7578
web.cache-from=type=gha
7679
web.cache-to=type=gha,mode=max
7780
78-
- name: Create volumes and bring up db
81+
- name: Create volumes
82+
working-directory: ./packages/django-app
83+
run: docker volume create --name=oscarr_postgres
84+
85+
- name: Start database
7986
working-directory: ./packages/django-app
8087
run: |
81-
docker volume create --name=oscarr_postgres
8288
docker compose up -d db
8389
./bin/wait-for-it.sh localhost:5432 -- echo "db is up"
8490

0 commit comments

Comments
 (0)