-
Notifications
You must be signed in to change notification settings - Fork 9
53 lines (46 loc) · 1.39 KB
/
Copy pathcd-dev.yml
File metadata and controls
53 lines (46 loc) · 1.39 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
44
45
46
47
48
49
50
51
52
53
# Copyright (c) 2016-present, CloudZero, Inc. All rights reserved.
# Licensed under the BSD-style license. See LICENSE file in the project root for full license information.
name: CD Dev
on:
workflow_dispatch:
push:
branches:
- develop
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
permissions:
id-token: write
contents: read
jobs:
cd-dev:
runs-on: ubuntu-latest
environment: dev
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup AWS SAM
uses: aws-actions/setup-sam@v2
with:
use-installer: true
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: ${{ secrets.SAM_DEPLOY_ROLE_ARN }}
aws-region: us-east-1
- name: Upload S3 Artifacts
shell: bash
run: make deploy version='dev' regions='us-east-1 us-east-2 us-west-1'
merge-to-master:
runs-on: ubuntu-latest
needs: cd-dev
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Merge from develop to master
uses: ./.github/actions/merge-from-to
with:
from-branch: develop
from-sha: ${{ github.sha }}
to: master
app_id: ${{ secrets.PUBLIC_GITHUB_ACTIONS_APP_ID }}
private_key: ${{ secrets.PUBLIC_GITHUB_ACTIONS_APP_PRIVATE_KEY }}