[IT-3817] Update s3-synapse-sync lambda (#650) #180
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: "deploy" | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- uses: pre-commit/[email protected] | |
sceptre-deploy: | |
runs-on: ubuntu-latest | |
if: ${{ github.ref == 'refs/heads/master' }} | |
needs: [ 'pre-commit' ] | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: 'Checkout' | |
uses: actions/checkout@v3 | |
- name: Assume AWS Role | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
aws-region: us-east-1 | |
role-to-assume: arn:aws:iam::055273631518:role/sagebase-github-oidc-sage-bionetworks-scicomp-provisioner | |
role-session-name: GitHubActions-${{ github.repository_owner }}-${{ github.event.repository.name }}-${{ github.run_id }} | |
role-duration-seconds: 1800 | |
- name: 'Sceptre Deploy' | |
uses: Sceptre/[email protected] | |
with: | |
sceptre_version: '4.1.0' | |
sceptre_plugins: >- | |
sceptre-ssm-resolver==1.2.2 | |
sceptre_subcommand: 'launch prod --prune --yes' |