-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 999 Bytes
/
deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: deploy benchmarker
on:
workflow_dispatch:
inputs:
TAG:
description: 'tag'
required: true
permissions:
id-token: write
contents: read
jobs:
bench:
runs-on: codebuild-portal-github-actions-${{ github.run_id }}-${{ github.run_attempt }}
steps:
- uses: actions/checkout@v4
- name: Configure AWS credentials from IAM Role
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ vars.AWS_DEPLOY_ROLE_ARN }}
aws-region: ap-northeast-1
- name: deploy
working-directory: ecs
# sudoがない環境なので公式GitHub Actionsは使えない
run: |
wget https://github.com/kayac/ecspresso/releases/download/v2.4.4/ecspresso_2.4.4_linux_amd64.tar.gz
tar xvf ecspresso_2.4.4_linux_amd64.tar.gz
./ecspresso deploy --config benchmarker.yml --no-wait
env:
TAG: ${{ github.event.inputs.TAG || 'latest' }}
ENV: stg