Skip to content

Commit

Permalink
Try to updateresolv.conf options
Browse files Browse the repository at this point in the history
  • Loading branch information
CANDELA Olivier committed May 8, 2018
1 parent f1b837b commit 3663724
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,13 @@ deploy_prod:
script:
- echo "====== Deploy to production server ======"
- apk --update upgrade
- apk --no-cache add ca-certificates wget
- echo "use_proxy=yes" >> ~/.wgetrc
- echo $TARGET_SERVER_HTTP_PROXY >> ~/.wgetrc
- echo $TARGET_SERVER_HTTPS_PROXY >> ~/.wgetrc
- wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://raw.githubusercontent.com/sgerrand/alpine-pkg-glibc/master/sgerrand.rsa.pub
- wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.27-r0/glibc-2.27-r0.apk
- apk add glibc-2.27-r0.apk
- echo "options ndots:5" >> /etc/resolv.conf
- apk add git openssh bash
# Add target server`s secret key
- mkdir ~/.ssh
- echo $TARGET_SERVER_SECRET_KEY_BASE64 | base64 -d > ~/.ssh/id_rsa
- chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
- echo "Test ssh connection"
- ldd --version
- ssh -o StrictHostKeyChecking=no -T "$TARGET_SERVER_USER@$TARGET_SERVER_HOST -p $TARGET_SERVER_PORT"
# Deploy
- echo "Setup target server directories"
Expand Down

0 comments on commit 3663724

Please sign in to comment.