Switch from alpine to debian
This commit is contained in:
@@ -74,11 +74,12 @@ build:
|
|||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
image: alpine:latest
|
image: debian:latest
|
||||||
before_script:
|
before_script:
|
||||||
- 'command -v ssh-agent >/dev/null || ( apk add --update openssh )'
|
- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
|
||||||
- eval $(ssh-agent -s)
|
- eval $(ssh-agent -s)
|
||||||
- cat "$SSH_PRIVATE_KEY" | ssh-add -
|
- chmod 400 "$SSH_PRIVATE_KEY"
|
||||||
|
- ssh-add "$SSH_PRIVATE_KEY"
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- chmod 700 ~/.ssh
|
- chmod 700 ~/.ssh
|
||||||
- ssh-keyscan $REMOTE_HOST >> ~/.ssh/known_hosts
|
- ssh-keyscan $REMOTE_HOST >> ~/.ssh/known_hosts
|
||||||
|
|||||||
Reference in New Issue
Block a user