Skip to content
Snippets Groups Projects
Commit 3a247742 authored by L4168's avatar L4168
Browse files

setting up gitlab-ci

parent 42f19b79
No related branches found
No related tags found
2 merge requests!59Development to master,!21Error handling
Pipeline #63909 passed
......@@ -34,6 +34,5 @@ lerna-debug.log*
!.vscode/extensions.json
# db connection
ormconfig.json
.env
*.providers.ts
stages:
- e2e-test
e2e-testing:
image:
name: docker/compose:1.24.0
entrypoint: ['/bin/sh', '-c']
services:
- docker:dind
stage: e2e-test
tags: ['compose']
only:
- testing
before_script:
- echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USER" --password-stdin
script:
- docker image prune -f
- docker-compose build --no-cache
- docker-compose up -d
after_script:
- docker logout
version: "3"
version: '3'
services:
ehasa-frontend:
image: "ehasa/frontend"
image: overflow2019/frontend:test
ports:
- 8080:80
- 80:80
ehasa-backend:
image: "ehasa/backend"
build: .
ports:
- 5000:5000
- 8080:5000
postgres:
image: mdillon/postgis
volumes:
- /home/postgres:/var/lib/postgresql/data
ports:
- 5432:5432
\ No newline at end of file
- ./docker:/docker-entrypoint-initdb.d/
\ No newline at end of file
{
"type": "postgres",
"host": "localhost",
"port": 5432,
"username": "ehasa",
"password": "salasana",
"database": "ehasa",
"entities": ["src/**/*.entity{.ts,.js}"],
"synchronize": true,
"logging": true,
"dropSchema": false
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment