forked from interuss/dss
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (45 loc) · 1.33 KB
/
dss-deploy.yml
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
name: Deploy DSS
on:
workflow_dispatch: {}
jobs:
deploy:
name: Deploy DSS to AWS
runs-on: ubuntu-latest
if: github.repository == 'interuss/dss' || github.repository == 'Orbitalize/dss'
concurrency:
group: dss-deploy-aws
cancel-in-progress: false
permissions:
id-token: write
contents: read
steps:
- name: Job information
run: |
echo "Job information"
echo "Trigger: ${{ github.event_name }}"
echo "Host: ${{ runner.os }}"
echo "Repository: ${{ github.repository }}"
echo "Branch: ${{ github.ref }}"
docker images
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::301042233698:role/InterUSSGithubCI
aws-region: us-east-1
mask-aws-account-id: true
role-duration-seconds: 5400
- name: Caller Id
run: |
aws sts get-caller-identity
- name: Test Deployment Scenario AWS-1
shell: bash
working-directory: ./deploy/operations/
env:
COMPOSE_PROFILES: aws-1
AWS_REGION: us-east-1
run: |
docker compose up --exit-code-from ci-aws-1