.
This commit is contained in:
@@ -13,23 +13,35 @@ jobs:
|
||||
uses: actions/checkout@v2
|
||||
- name: build git runner
|
||||
shell: bash
|
||||
|
||||
run: |
|
||||
docker build ${{gitea.workspace}}/services/git-runner --tag homesrv/git-runner
|
||||
ansible-playbook:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: homesrv/git-runner
|
||||
volumes:
|
||||
- workspace:/workspace
|
||||
steps:
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Run Ansible Playbook
|
||||
env:
|
||||
#ANSIBLE_USER: ${{ secrets.ANSIBLE_USER }}
|
||||
ANSIBLE_HOST_KEY_CHECKING: False
|
||||
ubuntu:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ubuntu:latest
|
||||
volumes:
|
||||
- workspace:/workspace
|
||||
steps:
|
||||
- name: check server
|
||||
run: |
|
||||
wget https://git.limbosolutions.com
|
||||
wget http://has.lan
|
||||
|
||||
#- name: Run Ansible Playbook
|
||||
# env:
|
||||
#ANSIBLE_USER: ${{ secrets.ANSIBLE_USER }}
|
||||
# ANSIBLE_HOST_KEY_CHECKING: False
|
||||
# run: |
|
||||
# wget http://has.lan
|
||||
# ansible-playbook \
|
||||
# -i 192.168.14.2, ${{gitea.workspace}}/ansible/site.yml \
|
||||
# --private-key xxxx \
|
||||
|
||||
Reference in New Issue
Block a user