-
Notifications
You must be signed in to change notification settings - Fork 11
39 lines (36 loc) · 1.05 KB
/
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
31
32
33
34
35
36
37
38
39
---
name: deploy
run-name: ${{ github.event.inputs.env }} deploy ${{ github.ref_name }} ${{ github.event_name }} by ${{ github.actor }}
on:
workflow_dispatch:
inputs:
env:
type: environment
ref:
description: 'Branch, Tag, or Full SHA'
required: true
default: 'master'
concurrency:
group: ${{ github.event.inputs.env }}
permissions:
id-token: write
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: ${{ github.event.inputs.env }}
env:
DEPLOYMENT: ${{ github.event.inputs.env }}
AWS_ECR_REPOSITORY: ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.us-west-2.amazonaws.com/eimmigrate
steps:
- uses: actions/checkout@v3
- uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions
role-session-name: gha
aws-region: us-west-2
- id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- run: make deploy
- run: make deploy-status