mirror of
https://github.com/CryptKeeperZK/crypt-keeper-extension.git
synced 2026-04-22 03:00:36 -04:00
Bumps [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) from 3 to 4. - [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/v3...v4) --- updated-dependencies: - dependency-name: aws-actions/configure-aws-credentials dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
name: Deploy demo
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "packages/demo/**"
|
|
- "packages/merkle-mock-server/**"
|
|
|
|
workflow_dispatch:
|
|
inputs:
|
|
build:
|
|
description: "Build trigger"
|
|
required: true
|
|
default: "enable"
|
|
type: choice
|
|
options:
|
|
- enable
|
|
- disable
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-22.04
|
|
|
|
env:
|
|
DATA: ${{ github.event.inputs.build || 'enable' }}
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Configure AWS Credentials
|
|
uses: aws-actions/configure-aws-credentials@v4
|
|
with:
|
|
role-to-assume: arn:aws:iam::490752553772:role/crypt-keeper-extension-ecs-deploy-slc
|
|
role-duration-seconds: 1800
|
|
aws-region: eu-central-1
|
|
|
|
- name: Build and Push images to ECR
|
|
run: |
|
|
.github/scripts/build.sh ${{ env.DATA }}
|
|
|
|
- name: Create Deployment
|
|
run: |
|
|
.github/scripts/deploy.sh
|