Skip to content

Deploy to Latitude

Deploy to Latitude #17

Workflow file for this run

name: Deploy Lightclients
on:
push:
jobs:
ansible:

Check failure on line 7 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 7
runs-on: ubuntu-latest
env:
NETWORK: turing
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY}}
SERVER_COUNT: 20
steps:
- name: checkout code
uses: actions/checkout@v3
- name: ssh key setup
working-directory: ansible
run: |
echo "${{ secrets.SSH_KEY }}" >> key && chmod 0600 key && ls -ltr .
- name: view ansible inventory
working-directory: ansible
run: ansible-inventory --inventory inventory/${{ env.NETWORK }}.ini --list
- name: ping all
working-directory: ansible
run: ansible all -m ping --inventory inventory/${{ env.NETWORK }}.ini --extra-vars "@${{ env.NETWORK }}-vars.yml"
- name: Setup upterm session
uses: lhotari/action-upterm@v1
if: ${{ failure() }}
with:
wait-timeout-minutes: 2
- name: run playbook
working-directory: ansible
run: ansible-playbook playbook.yml --extra-vars "@${{ env.NETWORK }}-vars.yml"