diff options
author | Thomas White <taw@physics.org> | 2023-05-17 15:11:44 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2023-05-17 15:11:44 +0200 |
commit | a2f3f922dc00a766bedd510d3f762cac65e4ba84 (patch) | |
tree | 2946f6be1dfe481da26bf9e70e6663e96ed38c4e /.gitlab-ci.yml | |
parent | 4baf2948b5ad589e3660036565c18928aeb6da69 (diff) |
CI: Install wget for deployment step
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ae09d9ee..0cd5976d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -177,15 +177,17 @@ deploy-remote-maxwell: ## Create the SSH directory and give it the right permissions ## If MAXWELL_SSH_PRIVATE_KEY is not set then use $MAXWELL_USER_NAME and $MAXWELL_ACCOUNT_PASSWORD ## to connect using Kerberos. + - yum update -y + - yum install -y wget - if [ $MAXWELL_SSH_PRIVATE_KEY ]; then - command -v ssh-agent >/dev/null || ( yum update -y && yum install openssh-clients -y ); + command -v ssh-agent >/dev/null || ( yum install openssh-clients -y ); eval $(ssh-agent -s); chmod 400 "$MAXWELL_SSH_PRIVATE_KEY"; ssh-add "$MAXWELL_SSH_PRIVATE_KEY"; mkdir -p ~/.ssh; chmod 700 ~/.ssh; else - yum update -y && yum install -y openssh-clients krb5-workstation; + yum install -y openssh-clients krb5-workstation; echo $MAXWELL_ACCOUNT_PASSWORD | kinit $MAXWELL_USER_NAME@DESY.DE; fi - wget -q https://wims.desy.de/system/ALL_afs/etc/ssh_known_hosts2 -O ~/.ssh/known_hosts |