Update CI to do a live update of bots #3
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: Run ansible to configure servers | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
env: | |
IS_MASTER_BUILD: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: run ansible | |
if: ${{ env.IS_MASTER_BUILD }} | |
run: | | |
ANSIBLE_REMOTE_USER=ansible APPLY=1 ./run.sh --limit bots |