Commit de8eb20c authored by nanahira's avatar nanahira

bak

parent 2fda5f15
stages:
- test
- deploy
variables:
GIT_DEPTH: "1"
test:
stage: test
tags:
- linux
script:
- apt update && apt -y install dnsmasq
- echo "conf-dir=$PWD/dnsmasq.d,*.conf" | tee /etc/dnsmasq.conf
- dnsmasq --test
deploy:
stage: deploy
tags:
- linux
script:
- apt update && apt -y install openssh-client coreutils rsync
- pip install -U ansible==2.9.6 jinja2==3.0 -i https://mirrors.aliyun.com/pypi/simple/
- ansible --version
- mkdir ~/.ssh
- chmod 700 ~/.ssh
- echo $SSH_KEY | base64 --decode > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/*
#- curl -sL https://cokebar.github.io/gfwlist2dnsmasq/dnsmasq_gfwlist_ipset.conf | grep -P '^ipset=' > gfwlist-ipset.conf
#- ./tld.sh
- cd ansible
- chmod 700 .
- ansible-playbook update.yaml
- cd ..
only:
- master
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment