mirror of
https://github.com/tlsnotary/explorer.git
synced 2026-01-09 14:58:09 -05:00
* Create Dockerfile for app * Add deployment workflow * Add aux scripts needed to build/deploy
38 lines
824 B
YAML
38 lines
824 B
YAML
name: cd-deploy
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Configure AWS Credentials
|
|
uses: aws-actions/configure-aws-credentials@v2
|
|
with:
|
|
role-to-assume: arn:aws:iam::490752553772:role/tlsnotary-explorer-ecs-deploy-slc
|
|
role-duration-seconds: 2700
|
|
aws-region: eu-central-1
|
|
|
|
- name: Build and Push images to ECR
|
|
run: |
|
|
.github/scripts/build.sh
|
|
|
|
- name: Trigger Deployment
|
|
run: |
|
|
.github/scripts/deploy.sh
|