If it's stupid and it works, it ain't stupid
Some checks failed
🧪✨ Tests Workflow / 🧪 ✨ Database Migrations (push) Failing after 1m55s
🧪✨ Tests Workflow / 🛡️ 🔒 License Check (push) Successful in 1m54s
🧪✨ Tests Workflow / 📝 ✨ Code Lint (push) Successful in 2m0s
🧪✨ Tests Workflow / 🛡️ 🔒 Library Audit (push) Successful in 2m3s
🧪✨ Tests Workflow / 🐙 🔍 Code Sniffer (push) Successful in 2m5s
🧪✨ Tests Workflow / 🧪 ✅ Unit Tests (push) Successful in 1m12s

This commit is contained in:
2025-05-14 11:47:46 -04:00
parent b466495ae1
commit f12559d2c3

View File

@@ -38,7 +38,7 @@ jobs:
echo "Starting Support Containers"
docker run --rm \
--network "${{ env.JOB_CONTAINER_NAME }}-DatabaseMigrations-network" \
--name ${{ env.RUN_ID }}-postgres \
--name ${{ gitea.run_id }}-postgres \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_DB=postgres \
@@ -48,17 +48,17 @@ jobs:
- name: Run Migrations
run: |
docker run \
--name ${{ env.RUN_ID }}-migrate \
--name ${{ gitea.run_id }}-migrate \
--rm \
--volumes-from ${{ env.JOB_CONTAINER_NAME }} \
--network "${{ env.JOB_CONTAINER_NAME }}-DatabaseMigrations-network" \
-w ${{ github.workspace }} \
siteworxpro/migrate:v4.18.3 -database "postgres://postgres:postgres@${{ env.RUN_ID }}-postgres:5432/postgres?sslmode=disable" -path db/migrations up
siteworxpro/migrate:v4.18.3 -database "postgres://postgres:postgres@${{ gitea.run_id }}-postgres:5432/postgres?sslmode=disable" -path db/migrations up
- name: Rollback Migrations
run: |
docker run \
--name ${{ env.RUN_ID }}-migrate \
--name ${{ gitea.run_id }}-migrate \
--rm \
--volumes-from ${{ env.JOB_CONTAINER_NAME }} \
--network "${{ env.JOB_CONTAINER_NAME }}-DatabaseMigrations-network" \