mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-02 14:59:53 +08:00
Bumps [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) from 4.0.3 to 4.1.0. - [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases) - [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md) - [Commits](https://github.com/aws-actions/configure-aws-credentials/compare/4fc4975a852c8cd99761e2de1f4ba73402e44dd9...ececac1a45f3b08a01d2dd070d28d111c5fe6722) --- updated-dependencies: - dependency-name: aws-actions/configure-aws-credentials dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
43 lines
1.2 KiB
YAML
43 lines
1.2 KiB
YAML
name: Docs Preview
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'docs/**'
|
|
- .github/workflows/docs-amplify.yaml
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
id-token: write
|
|
|
|
jobs:
|
|
amplify-preview:
|
|
name: Prepare Amplify preview URL
|
|
runs-on: ubuntu-22.04-2core-arm64
|
|
environment: docs-amplify
|
|
steps:
|
|
- name: Configure AWS credentials
|
|
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4
|
|
with:
|
|
aws-region: us-west-2
|
|
role-to-assume: ${{ vars.IAM_ROLE }}
|
|
|
|
- name: Create Amplify preview environment
|
|
uses: gravitational/shared-workflows/tools/amplify-preview@tools/amplify-preview/v0.0.1
|
|
continue-on-error: true
|
|
with:
|
|
app_ids: ${{ vars.AMPLIFY_APP_IDS }}
|
|
create_branches: "true"
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
wait: "true"
|
|
|
|
- name: Print failure message
|
|
if: failure()
|
|
env:
|
|
ERR_TITLE: Teleport Docs preview build failed
|
|
ERR_MESSAGE: >-
|
|
Please refer to the following documentation for help: https://www.notion.so/goteleport/How-to-Amplify-deployments-162fdd3830be8096ba72efa1a49ee7bc?pvs=4
|
|
run: |
|
|
echo ::error title=$ERR_TITLE::$ERR_MESSAGE
|
|
exit 1
|