Skip to content

Commit ed08e1a

Browse files
author
Layko Andrey
committed
some
1 parent ce23a56 commit ed08e1a

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/actions/deploy/action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ runs:
3737
echo "$SSH_KEY" | tr -d '\r' | ssh-add - > /dev/null
3838
mkdir -p ~/.ssh
3939
chmod 700 ~/.ssh
40-
ssh-keyscan ${{ REMOTE_SERVER }} >> ~/.ssh/known_hosts
40+
ssh-keyscan $REMOTE_SERVER >> ~/.ssh/known_hosts
4141
chmod 644 ~/.ssh/known_hosts
42-
export DOCKER_HOST="ssh://gitlab@${{ REMOTE_SERVER }}"
43-
export MONGODB_PASSWORD="${{ MONGODB_PASSWORD }}"
44-
export IMAGE_TAG="${{ DOCKER_IMAGE_TAG }}"
45-
docker login -u ${{ DOCKER_USER_NAME }} -p ${{ DOCKER_PASSWORD }}
42+
export DOCKER_HOST="ssh://gitlab@$REMOTE_SERVER"
43+
export MONGODB_PASSWORD="$MONGODB_PASSWORD"
44+
export IMAGE_TAG="$DOCKER_IMAGE_TAG"
45+
docker login -u $DOCKER_USER_NAME -p $DOCKER_PASSWORD
4646
docker-compose -f docker-compose-server.yml up -d
47-
docker image ls --filter reference=${{ DOCKER_IMAGE_TAG }} -q | tail -n +4 | xargs --no-run-if-empty docker image rm
47+
docker image ls --filter reference=$DOCKER_IMAGE_TAG -q | tail -n +4 | xargs --no-run-if-empty docker image rm
4848
shell: bash
4949

0 commit comments

Comments
 (0)