File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11version : " 2.4"
22services :
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 :
You can’t perform that action at this time.
0 commit comments