Bump @aws-sdk/client-s3 from 3.433.0 to 3.540.0 in /source/image-handler #243
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: main | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "**.tf" | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- "**.tf" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
# read+write needed for `aws-actions/configure-aws-credentials` to work | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
image-handler: | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: install | |
run: make FUNC=image-handler npm/install | |
- name: install | |
run: make FUNC=image-handler npm/test | |
- name: build | |
run: make FUNC=image-handler build | |
- name: configure aws credentials | |
# 📌 Runs only if: | |
# 1. is a 'push to main' | |
# 2. did not run in a fork | |
if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'stroeer' }} | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: arn:aws:iam::053041861227:role/github-s3-access-eu-west-1 | |
role-session-name: GitHubActions | |
aws-region: eu-west-1 | |
- name: s3 upload artefact | |
# 📌 Runs only if: | |
# 1. is a 'push to main' | |
# 2. did not run in a fork | |
if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'stroeer' }} | |
run: make FUNC=image-handler deploy | |
thumbnail-generator: | |
env: | |
CARGO_TERM_COLOR: always | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Set up cargo cache | |
uses: actions/cache@v4 | |
continue-on-error: false | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
restore-keys: ${{ runner.os }}-cargo- | |
- name: install cargo lambda | |
run: pip3 install cargo-lambda | |
- name: cargo lambda build | |
run: make build FUNC=thumbs | |
- name: configure aws credentials | |
# 📌 Runs only if: | |
# 1. is a 'push to main' | |
# 2. did not run in a fork | |
if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'stroeer' }} | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: arn:aws:iam::053041861227:role/github-s3-access-eu-west-1 | |
role-session-name: GitHubActions | |
aws-region: eu-west-1 | |
- name: s3 upload artefact | |
# 📌 Runs only if: | |
# 1. is a 'push to main' | |
# 2. did not run in a fork | |
if: ${{ github.ref == 'refs/heads/main' && github.repository_owner == 'stroeer' }} | |
run: make deploy FUNC=thumbs |