Skip to content

Bump ruby/setup-ruby from 1.191.0 to 1.192.0 (#212) #150

Bump ruby/setup-ruby from 1.191.0 to 1.192.0 (#212)

Bump ruby/setup-ruby from 1.191.0 to 1.192.0 (#212) #150

Workflow file for this run

name: Deploy to AWS
on:
push:
branches:
- main
workflow_dispatch:
permissions: {}
jobs:
tokei:
runs-on: ubuntu-22.04
outputs:
latest-sha: ${{ steps.fetch-latest-sha.outputs.latest-sha }}
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Fetch latest commit SHA
id: fetch-latest-sha
run: |
source ./bin/fetch-latest-tokei-sha.sh
echo "latest-sha=${LATEST_TOKEI_SHA}" >> $GITHUB_OUTPUT
env:
GH_TOKEN: ${{ github.token }}
build-and-push-image:
needs: [tokei]
uses: exercism/github-actions/.github/workflows/docker-build-push-image.yml@main
permissions:
contents: write
with:
provenance: false
secrets:
AWS_ACCOUNT_ID: ${{secrets.AWS_ACCOUNT_ID}}
AWS_REGION: ${{secrets.AWS_REGION}}
AWS_ECR_ACCESS_KEY_ID: ${{secrets.AWS_LAMBDA_ACCESS_KEY_ID}}
AWS_ECR_SECRET_ACCESS_KEY: ${{secrets.AWS_LAMBDA_SECRET_ACCESS_KEY}}
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
DOCKERHUB_PASSWORD: ${{secrets.DOCKERHUB_PASSWORD}}
DOCKER_BUILD_ARGS: TOKEI_SHA=${{needs.tokei.outputs.latest-sha}}
deploy-lambda:
uses: exercism/github-actions/.github/workflows/deploy-lambda.yml@main
needs: build-and-push-image
with:
function_name: lines_of_code_counter
secrets:
AWS_ACCOUNT_ID: ${{secrets.AWS_ACCOUNT_ID}}
AWS_REGION: ${{secrets.AWS_REGION}}
AWS_ECR_ACCESS_KEY_ID: ${{secrets.AWS_LAMBDA_ACCESS_KEY_ID}}
AWS_ECR_SECRET_ACCESS_KEY: ${{secrets.AWS_LAMBDA_SECRET_ACCESS_KEY}}