File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -174,20 +174,20 @@ jobs:
174174 needs : [tests, build, package, deploy-sprint]
175175
176176 steps :
177+
177178 - name : Checkout repository
178179 uses : actions/checkout@v2
179180
180- - name : Setup SSH connection
181+ - name : Deploy server
181182 run : |
183+ sudo apt install openssh-client
184+ sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
182185 eval $(ssh-agent -s)
183186 echo "${{ secrets.PROD_DEPLOY_SSH_KEY }}" | tr -d '\r' | ssh-add - > /dev/null
184187 mkdir -p ~/.ssh
185188 chmod 700 ~/.ssh
186189 ssh-keyscan ${{ secrets.PROD_SERVER }} >> ~/.ssh/known_hosts
187190 chmod 644 ~/.ssh/known_hosts
188-
189- - name : Deploy server
190- run : |
191191 export DOCKER_HOST="ssh://gitlab@${{ secrets.PROD_SERVER }}"
192192 export MONGODB_PASSWORD="${{ secrets.PROD_MONGO_PASSWORD }}"
193193 export DOCKER_IMAGE_TAG="openplatform/open-state:${{ env.IMAGE_TAG }}"
You can’t perform that action at this time.
0 commit comments