54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
name: deploy host
|
|
on:
|
|
push:
|
|
paths-ignore:
|
|
- "services/**"
|
|
- "docs/**"
|
|
- ".gitea/workflows/**services**.yml"
|
|
jobs:
|
|
checkout:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
ansible:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: librespace/ansible
|
|
volumes:
|
|
- ${{github.workspace}}/ansible:/ansible
|
|
steps:
|
|
- name: ls
|
|
shell: bash
|
|
run: |
|
|
ls /ansible -lah
|
|
|
|
# run: |
|
|
# ls
|
|
# - name: ls
|
|
# run: |
|
|
# ls -lah
|
|
|
|
|
|
# - name: Install Ansible
|
|
# shell: bash
|
|
# run: |
|
|
# sudo apt update
|
|
# sudo apt install -y ansible
|
|
|
|
# - name: Docker tests
|
|
|
|
# run: |
|
|
# docker pull librespace/ansible
|
|
# docker run \
|
|
# --mount type=bind,source="$(pwd)"/ansible,target=/ansible \
|
|
# librespace/ansible \
|
|
# ansible-playbook ansible/site.yml --private-key xxxx -u xxxx
|
|
|
|
|
|
# - name: Run Ansible Playboo
|
|
# env:
|
|
# ANSIBLE_USER: ${{ secrets.ANSIBLE_USER }}
|
|
# ANSIBLE_HOST_KEY_CHECKING: False
|
|
# run: |
|
|
# ansible-playbook ansible/site.yml --private-key xxxx -u xxxx |