We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d56ef8 commit 2fcf41bCopy full SHA for 2fcf41b
.github/workflows/deploy.yml
@@ -102,6 +102,15 @@ jobs:
102
# Use 'codebuilder' as the stack prefix
103
docker compose -p codebuilder up -d --no-deps api
104
105
+ - name: '🔧 Ensure Postgres data volume exists'
106
+ run: |
107
+ if [ -z "$(docker volume ls -q -f name=codebuilder-postgres-data)" ]; then
108
+ echo "Volume 'codebuilder-postgres-data' not found. Creating it..."
109
+ docker volume create codebuilder-postgres-data
110
+ else
111
+ echo "Volume 'codebuilder-postgres-data' already exists. Skipping creation."
112
+ fi
113
+
114
- name: '🗑 Prune Old Docker Images'
115
if: always()
116
run: docker image prune -af
0 commit comments