Update actions/setup-python action to v4.7.0 (#17) #8
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: Deploy duckdns | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: | |
- main | |
paths: | |
- roles/docker_compose_duckdns/** | |
- .github/workflows/duckdns.yaml | |
pull_request: | |
paths: | |
- roles/docker_compose_duckdns/** | |
- .github/workflows/duckdns.yaml | |
jobs: | |
duckdns: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
python-version: 3.x | |
- run: | | |
sed -i '/vars_files/I,+1 d' main.yaml | |
sed -i '/vault_password_file/d' ansible.cfg | |
pip install ansible | |
ansible-galaxy install --role-file requirements.yaml | |
ansible-playbook main.yaml --limit localhost --tags duckdns \ | |
--extra-vars "duckdns_domain=ci duckdns_token=ci" | |
docker ps --filter name=duckdns | grep --quiet duckdns |