forked from USACE/cwms-data-api
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.09 KB
/
deploy.yml
File metadata and controls
37 lines (35 loc) · 1.09 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
name: Deploy
on:
workflow_dispatch:
inputs:
environment:
description: "Which environment (test/prod) to deploy to"
required: true
default: 'Test'
type: environment
activate:
description: "If true, will also set to current running. Otherwise just verifies we can push the image"
required: true
default: false
type: boolean
jobs:
# Deploy CDA nightly. Keeps everyone on their toes with new updates and keeps the containers
deploy:
name: Deploy
environment: ${{ inputs.environment }}
permissions:
id-token: write
contents: read
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Deploy
uses: ./.github/actions/deploy-cda
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{github.ref_name}}
region: ${{secrets.REGION}}
iam_role: ${{secrets.DEPLOY_ROLE}}
activation_tag: ${{secrets.ACTIVATION_TAG}}
activate: ${{inputs.activate}}