forked from alexey-ban/ai-dial-chat-themes
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (32 loc) · 1.02 KB
/
deploy_review.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
name: Deploy Review
on:
pull_request_target:
branches:
- development
permissions: {}
jobs:
create_gh_environment:
uses: nepalevov/ai-dial-ci/.github/workflows/gh_environment.yml@main
secrets:
ACTIONS_BOT_TOKEN: ${{ secrets.ACTIONS_BOT_TOKEN }}
with:
operation: create
# HINT: outputs: ["environment_name", "environment_url"]
test_and_build:
runs-on: ubuntu-latest
needs:
- create_gh_environment
steps:
- run: |
echo "Running tests and building the application..."
echo "Additional docker tag: ${{ needs.create_gh_environment.outputs.environment_name }}"
deploy:
runs-on: ubuntu-latest
needs:
- create_gh_environment
- test_and_build
steps:
- run: |
echo "Deploying the application to the cluster..."
echo "Namespace: ${{ github.repository_id }}-${{ needs.create_gh_environment.outputs.environment_name }}
echo "Global deployment URL: ${{ needs.create_gh_environment.outputs.environment_url }}"