-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.1 KB
/
eb-deploy.yml
File metadata and controls
43 lines (36 loc) · 1.1 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
name: EB Deploy
# Transitional workflow for Elastic Beanstalk apps. Remove per-repo
# once the app is confirmed working on ECS.
on:
workflow_call:
inputs:
environment_name:
description: "Elastic Beanstalk environment name"
type: string
required: true
aws_account_id:
description: "AWS account ID"
type: string
default: "553637109631"
aws_region:
description: "AWS region"
type: string
default: "eu-central-1"
permissions:
id-token: write
contents: read
jobs:
deploy:
name: EB Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Configure AWS credentials via OIDC
uses: aws-actions/configure-aws-credentials@v6
with:
role-to-assume: arn:aws:iam::${{ inputs.aws_account_id }}:role/javabin-ci-deploy-${{ github.event.repository.name }}
aws-region: ${{ inputs.aws_region }}
- name: Install EB CLI
run: pip install awsebcli
- name: Deploy to Elastic Beanstalk
run: eb deploy ${{ inputs.environment_name }} --staged