fix ci/cd
Deploy app frontend / app frontend (push) Successful in 1m14s
Deploy service couchdb / service couchdb (push) Successful in 15s
Deploy db-migrations / db-migrations (push) Failing after 50s
Deploy service message-delivery-method-web-push / service message-delivery-method-web-push (push) Successful in 43s

This commit is contained in:
2024-12-03 14:19:15 +02:00
parent 51894e67ce
commit afffc80423
6 changed files with 9 additions and 3 deletions
@@ -7,6 +7,7 @@ on:
paths:
- 'apps/frontend/**'
- '.gitea/workflows/deploy-app-frontend.yaml'
- 'docker-compose.yml'
jobs:
app frontend:
@@ -7,6 +7,7 @@ on:
paths:
- 'services/couchdb/**'
- '.gitea/workflows/deploy-service-couchdb.yaml'
- 'docker-compose.yml'
jobs:
service couchdb:
@@ -7,6 +7,7 @@ on:
paths:
- 'services/db-migrations/**'
- '.gitea/workflows/deploy-service-db-migrations.yaml'
- 'docker-compose.yml'
jobs:
db-migrations:
@@ -8,6 +8,7 @@ on:
- 'services/message-delivery-method-web-push/**'
- 'packages/couchdb-changes-stream/**'
- '.gitea/workflows/deploy-service-message-delivery-method-web-push.yaml'
- 'docker-compose.yml'
jobs:
service message-delivery-method-web-push:
+1 -1
View File
@@ -23,7 +23,7 @@ services:
db-migrations:
image: hereconnect/service-db-migrations:${DB_MIGRATIONS_TAG:-latest}
volumes:
- db_migrations_data:/opt/migrations/data
- db_migrations_data:/opt/db-migrations/data
environment:
- API_URL=http://${COUCHDB_USER}:${COUCHDB_PASSWORD}@couchdb:5984
depends_on:
+4 -2
View File
@@ -1,7 +1,9 @@
FROM oven/bun:1.1.38-alpine
VOLUME /opt/migrations/data
WORKDIR /opt/db-migrations
VOLUME /opt/db-migrations/data
COPY . ./
CMD ["bun", "./node_modules/migrate/bin/migrate", "-f", "/opt/migrations/data/migrations.json"]
CMD ["bun", "./node_modules/migrate/bin/migrate", "up", "--state-file=/opt/db-migrations/data/state.json"]