Skip to content

Commit 33bc1c0

Browse files
author
Layko Andrey
committed
some
1 parent dbe09c5 commit 33bc1c0

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,9 @@ jobs:
152152
chmod 700 ~/.ssh
153153
ssh-keyscan ${{ secrets.SPRINT_SERVER }} >> ~/.ssh/known_hosts
154154
chmod 644 ~/.ssh/known_hosts
155-
ls -a
156155
export DOCKER_HOST="ssh://gitlab@${{ secrets.SPRINT_SERVER }}"
156+
export MONGODB_PASSWORD="${{ secrets.MONGO_PASSWORD }}"
157+
export IMAGE_TAG="openplatform/open-state:${{ github.event.release.tag_name }}"
157158
docker login -u ${{ secrets.DOCKERHUB_USER_NAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }}
158159
docker-compose -f docker-compose-server.yml up -d
159160
docker image ls --filter reference=openplatform/open-state:${{ github.event.release.tag_name }} -q | tail -n +4 | xargs --no-run-if-empty docker image rm

docker-compose-server.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
version: "2.4"
22
services:
33
backend:
4-
image: openplatform/open-state:${{ github.event.release.tag_name }}
4+
image: ${ IMAGE_TAG }
55
depends_on:
66
- mongo
7+
- redis
78
mongo:
89
image: mongo:4.4.0
910
restart: always
1011
ports:
1112
- 27017:27017
1213
environment:
1314
MONGO_INITDB_ROOT_USERNAME: open_state
14-
MONGO_INITDB_ROOT_PASSWORD: ${{ secrets.MONGO_PASSWORD }}
15+
MONGO_INITDB_ROOT_PASSWORD: ${ MONGODB_PASSWORD }
1516
redis:
1617
image: redis:6.0.7
1718
ports:

0 commit comments

Comments
 (0)