Jafner.net/homelab/router/.gitlab-ci.yml

12 lines
423 B
YAML

before_script:
# configure SSH keys
- 'which ssh-agent || ( apt-get install -qq openssh-client )'
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
update-config-dump:
image: debian:bullseye
script:
- scp admin@router.jafner.net:/config/config.boot ~+/router/config/config.boot