2019-11-03 23:50:44 +01:00
|
|
|
|
2019-11-04 00:29:35 +01:00
|
|
|
name: Push Production Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- develop
|
2019-11-03 23:50:44 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Repo
|
2020-04-26 05:39:27 +02:00
|
|
|
uses: actions/checkout@v2.1.0
|
|
|
|
with:
|
|
|
|
submodules: 'true'
|
2019-11-03 23:50:44 +01:00
|
|
|
- name: Ship to S3
|
|
|
|
uses: jakejarvis/s3-sync-action@master
|
|
|
|
with:
|
|
|
|
args: --follow-symlinks --delete
|
|
|
|
env:
|
|
|
|
SOURCE_DIR: cloudformation
|
|
|
|
AWS_REGION: "us-east-1"
|
2019-11-04 00:29:35 +01:00
|
|
|
DEST_DIR: nakama/production/cloudformation
|
2019-11-03 23:50:44 +01:00
|
|
|
AWS_S3_BUCKET: sumu-stacks
|
|
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
2020-04-26 05:39:27 +02:00
|
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
|
|
- name: Deploy to AWS CloudFormation
|
|
|
|
uses: aws-actions/aws-cloudformation-github-deploy@v1
|
|
|
|
with:
|
|
|
|
name: ecs-nakama-stack
|
|
|
|
template: top.yaml
|
|
|
|
capabilities: "CAPABILITY_NAMED_IAM,CAPABILITY_IAM"
|
|
|
|
parameter-overrides: VpcId=${{ secrets.VPC_ID }},Domain=${{ secrets.DOMAIN }},SubDomain=nakama,PortalCertificate=${{ secrets.CERTIFICATE_ARN }},PublicSubnets=${{ secrets.SUBNET_IDS }}
|