-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.28 KB
/
deploy-dev.yaml
File metadata and controls
41 lines (36 loc) · 1.28 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
name: Deploy DEV
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
IMAGE_REPOSITORY: 185072717495.dkr.ecr.sa-east-1.amazonaws.com/cloud-apps-demo
jobs:
build:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.tag.outputs.imageTag}}
steps:
- name: Build process generating a tag
id: tag
run: echo "imageTag=latest" >> $GITHUB_OUTPUT
deploy:
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4.2.1
- name: Deploy repo application
uses: stack-spot/cloud-deploy-action@main
id: deploy
with:
CLIENT_REALM: ${{ secrets.CLIENT_REALM_DEV }}
CLIENT_ID: ${{ secrets.CLIENT_ID_DEV }}
CLIENT_KEY: ${{ secrets.CLIENT_KEY_DEV }}
APPLICATION_FILE: ${{ github.workspace }}/stackspot/application.yaml
PARAMETERS: |
IMAGE_REPOSITORY >> ${{ env.IMAGE_REPOSITORY }}
IMAGE_TAG >> ${{ needs.build.outputs.tag }}
RUNTIME_ID >> 01JRBNTDAT318ENRE59SWDBRRV
VERBOSE: true