Merge pull request #39 from mschatz/patch-3 #38
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 | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'group_vars/**' | |
- 'templates/lambda_function.py.j2' | |
jobs: | |
deploy: | |
name: Deploy rewrite function | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install boto3 | |
run: pip install boto3 | |
- name: Run deploy | |
run: ansible-playbook -i hosts lambda.yaml | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |