This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
Merge pull request #57 from stoccotommaso02/main #100
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
on: | |
push: | |
branches: | |
- main | |
jobs: | |
# deploy-terraform: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v3 | |
# - name: Configure AWS Credentials | |
# uses: aws-actions/configure-aws-credentials@v1 | |
# with: | |
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
# aws-region: us-east-2 | |
# - uses: hashicorp/setup-terraform@v2 | |
# with: | |
# terraform_version: 1.2.6 | |
# - name: "Deploy Terraform" | |
# run: | | |
# terraform init | |
# terraform apply -auto-approve | |
manage-users: | |
runs-on: ubuntu-latest | |
# needs: [deploy-terraform] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-east-2 | |
- name: "Install dependencies" | |
run: pip3 install -r requirements.txt | |
- name: "Sync Users" | |
run: python manage-users.py | |
env: | |
AWS_DEFAULT_REGION: us-east-2 |