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
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:
@@ -7,6 +7,7 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- 'apps/frontend/**'
|
- 'apps/frontend/**'
|
||||||
- '.gitea/workflows/deploy-app-frontend.yaml'
|
- '.gitea/workflows/deploy-app-frontend.yaml'
|
||||||
|
- 'docker-compose.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
app frontend:
|
app frontend:
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- 'services/couchdb/**'
|
- 'services/couchdb/**'
|
||||||
- '.gitea/workflows/deploy-service-couchdb.yaml'
|
- '.gitea/workflows/deploy-service-couchdb.yaml'
|
||||||
|
- 'docker-compose.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
service couchdb:
|
service couchdb:
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- 'services/db-migrations/**'
|
- 'services/db-migrations/**'
|
||||||
- '.gitea/workflows/deploy-service-db-migrations.yaml'
|
- '.gitea/workflows/deploy-service-db-migrations.yaml'
|
||||||
|
- 'docker-compose.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
db-migrations:
|
db-migrations:
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ on:
|
|||||||
- 'services/message-delivery-method-web-push/**'
|
- 'services/message-delivery-method-web-push/**'
|
||||||
- 'packages/couchdb-changes-stream/**'
|
- 'packages/couchdb-changes-stream/**'
|
||||||
- '.gitea/workflows/deploy-service-message-delivery-method-web-push.yaml'
|
- '.gitea/workflows/deploy-service-message-delivery-method-web-push.yaml'
|
||||||
|
- 'docker-compose.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
service message-delivery-method-web-push:
|
service message-delivery-method-web-push:
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ services:
|
|||||||
db-migrations:
|
db-migrations:
|
||||||
image: hereconnect/service-db-migrations:${DB_MIGRATIONS_TAG:-latest}
|
image: hereconnect/service-db-migrations:${DB_MIGRATIONS_TAG:-latest}
|
||||||
volumes:
|
volumes:
|
||||||
- db_migrations_data:/opt/migrations/data
|
- db_migrations_data:/opt/db-migrations/data
|
||||||
environment:
|
environment:
|
||||||
- API_URL=http://${COUCHDB_USER}:${COUCHDB_PASSWORD}@couchdb:5984
|
- API_URL=http://${COUCHDB_USER}:${COUCHDB_PASSWORD}@couchdb:5984
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
FROM oven/bun:1.1.38-alpine
|
FROM oven/bun:1.1.38-alpine
|
||||||
|
|
||||||
VOLUME /opt/migrations/data
|
WORKDIR /opt/db-migrations
|
||||||
|
|
||||||
|
VOLUME /opt/db-migrations/data
|
||||||
|
|
||||||
COPY . ./
|
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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user