This repository has been archived by the owner on Dec 9, 2024. It is now read-only.
Bump redis from 5.2.0 to 5.2.1 #261
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
push: | |
branches: main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- run: pip install -r requirements.txt | |
- run: pip install pytest | |
- run: pytest | |
artifact: | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
runs-on: ubuntu-latest | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_REGION: us-east-1 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: extractions/setup-just@v2 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- run: just dist | |
- id: artifact | |
run: | | |
key=src/record-metrics/${{ github.sha }}.zip | |
aws s3 cp --acl public-read dist/lambda.zip "s3://infra.restyled.io/$key" | |
printf 'key=%s\n' "$key" >>"$GITHUB_OUTPUT" | |
outputs: | |
key: ${{ steps.artifact.outputs.key }} | |
deploy: | |
if: ${{ github.ref == 'refs/heads/main' }} | |
needs: [test, artifact] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: restyled-io/gitops-deploy-action@main | |
with: | |
token: ${{ secrets.GITOPS_ACCESS_TOKEN }} | |
parameter-name: FunctionSourceKey | |
parameter-value: ${{ needs.artifact.outputs.key }} | |
committer-name: Restyled Commits | |
committer-email: [email protected] | |
repository: restyled-io/ops | |
stacks: cg-app/stacks/*/*/mgmt/record-metrics.yaml |