add workflow to test ansible #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |