File tree Expand file tree Collapse file tree 1 file changed +25
-4
lines changed
Expand file tree Collapse file tree 1 file changed +25
-4
lines changed Original file line number Diff line number Diff line change 1- name : Test Workflow Trigger
1+ name : Deploy on AKS
22
33on :
44 push :
55 branches :
66 - ' **'
77 workflow_dispatch :
8+ inputs :
9+ environment :
10+ required : true
11+ type : string
12+ default : dev
13+ description : env
14+
15+ env :
16+ NAMESPACE : afm
17+ APP_NAME : rtp-platform-qa
18+
19+ permissions :
20+ id-token : write
21+ contents : read
822
923jobs :
10- test :
11- runs-on : [ self-hosted-job, "dev" ]
24+ deploy :
25+ runs-on : [ self-hosted, self-hosted-job, "${{ github.event.inputs.environment || 'dev' }}" ]
26+ environment : ${{ github.event.inputs.environment || 'dev' }}
1227 steps :
13- - uses : actions/checkout@v4
28+ - uses : actions/checkout@v4
29+
30+ - name : Check runner environment
31+ run : |
32+ echo "🏃 Running on environment: ${{ github.event.inputs.environment || 'dev' }}"
33+ echo "📦 Namespace: ${{ env.NAMESPACE }}"
34+ echo "📦 App: ${{ env.APP_NAME }}"
You can’t perform that action at this time.
0 commit comments