Skip to content

add workflow to test ansible #4

add workflow to test ansible

add workflow to test ansible #4

Workflow file for this run

name: CI
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build image
run: docker build -t freefeed-ansible --build-arg VAULT_PASSWORD="${{ secrets.ANSIBLE_VAULT_PASSWORD }}" .github/
- name: Test server.yml
run: |
docker run --rm -v $PWD:/w -w /w --add-host freefeed.net:127.0.0.1 freefeed-ansible ansible-playbook --connection local -i candy --tags config --skip-tags handlers playbooks/server.yml
docker run --rm -v $PWD:/w -w /w --add-host freefeed.net:127.0.0.1 freefeed-ansible ansible-playbook --connection local -i freefeed --tags config --skip-tags handlers playbooks/server.yml
- name: Test react-client.yml
run: |
docker run --rm -v $PWD:/w -w /w --add-host freefeed.net:127.0.0.1 freefeed-ansible ansible-playbook --connection local -i candy --tags config --skip-tags handlers playbooks/react_client.yml
docker run --rm -v $PWD:/w -w /w --add-host freefeed.net:127.0.0.1 freefeed-ansible ansible-playbook --connection local -i beta --tags config --skip-tags handlers playbooks/react_client.yml
docker run --rm -v $PWD:/w -w /w --add-host freefeed.net:127.0.0.1 freefeed-ansible ansible-playbook --connection local -i freefeed --tags config --skip-tags handlers playbooks/react_client.yml
- name: Test nginx.yml
run: |
docker run --rm -v $PWD:/w -w /w --add-host freefeed.net:127.0.0.1 freefeed-ansible ansible-playbook --connection local -i candy --tags config --skip-tags handlers playbooks/nginx.yml
docker run --rm -v $PWD:/w -w /w --add-host freefeed.net:127.0.0.1 freefeed-ansible ansible-playbook --connection local -i beta --tags config --skip-tags handlers playbooks/nginx.yml
docker run --rm -v $PWD:/w -w /w --add-host freefeed.net:127.0.0.1 freefeed-ansible ansible-playbook --connection local -i freefeed --tags config --skip-tags handlers playbooks/nginx.yml