This organization aims to group reusable GitHub Actions workflows. Here you will find workflows for Python, Docker, Terraform, AWS Beanstalk, AWS Lambda and others. Most workflows are just wrappers for other abstract actions to make them easier to use in other projects.
- Deploy Render
- Java Workflows
- Python Workflows
- Docker Workflows
- Terraform Workflows
- Deploy AWS Lambda
Workflow for checking Python code with Flake8 and Pytest, and deploying to AWS Lambda.
name: Python Workflow
on: [push]
jobs:
lint:
uses: gh-actions-workflows/python-workflows/.github/workflows/[email protected]
with:
python-version: '3.10'
test:
needs: lint
uses: gh-actions-workflows/python-workflows/.github/workflows/[email protected]
with:
python-version: '3.10'
deploy:
needs: test
uses: gh-actions-workflows/aws-lambda-workflows/.github/workflows/[email protected]
with:
function_name: binance_trades
handler: handler.handler
secrets:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: ${{ secrets.AWS_REGION }Workflow for checking Python code with Flake8 and Pytest, and deploying to Render.
name: My Workflow
on: [push]
jobs:
lint:
uses: gh-actions-workflows/python-workflows/.github/workflows/flake8.yaml@master
test:
needs: lint
uses: gh-actions-workflows/python-workflows/.github/workflows/pytest.yaml@master
publish:
uses: gh-actions-workflows/docker-workflows/.github/workflows/[email protected]
if: ${{ github.ref_name == 'master' || github.ref_name == 'develop'}}
needs: test
with:
app_name: 'my-app'
docker_hub_user: ${{ vars.DOCKER_HUB_USER }}
secrets:
docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
deploy:
if: ${{ github.ref_name == 'master' }}
needs: publish
runs-on: ubuntu-latest
steps:
- name: Deploy to Render
uses: gh-actions-workflows/[email protected]
with:
deploy-hook: ${{ secrets.RENDER_DEPLOY_HOOK }}
image-url: ${{ needs.publish.outputs.image_name }}
render-api-key: ${{ secrets.RENDER_API_KEY }}
wait-for-deployment: true