File tree Expand file tree Collapse file tree 6 files changed +6
-20
lines changed
runtime-cancel-run-action
runtime-create-manifest-action/templates Expand file tree Collapse file tree 6 files changed +6
-20
lines changed Original file line number Diff line number Diff line change 1717 type : text
1818 required : false
1919 help : ' Inform execution Id'
20- - label : Force Cancel
21- name : force_cancel
22- type : bool
23- default : false
24- required : false
25- help : ' Force cancel?'
2620 python :
2721 workdir : .
2822 script : script.py
Original file line number Diff line number Diff line change 33def run (metadata ):
44
55 RUN_ID = metadata .inputs .get ('run_id' )
6- FORCE = metadata .inputs .get ('force_cancel' )
76
8- print (FORCE )
9-
107 if RUN_ID == "" :
118 print ("- RUN_ID was not provided." )
129 print (" No need to cancel it." )
@@ -17,7 +14,7 @@ def run(metadata):
1714
1815 print (f"Requesting Run { RUN_ID } to be cancelled" )
1916
20- cancel_request = post_with_authorization (url = f"https://runtime-manager.stg.stackspot.com/v1/run/cancel/{ RUN_ID } ?force={ FORCE } " ,
17+ cancel_request = post_with_authorization (url = f"https://runtime-manager.stg.stackspot.com/v1/run/cancel/{ RUN_ID } ?force=true " ,
2118 headers = {'Content-Type' : 'application/json' },
2219 body = None ,
2320 timeout = 20 )
Original file line number Diff line number Diff line change 1- $HOME /.stk/bin/stk use workspace {{ inputs.workspace }}
1+ $HOME /.{{ inputs. stk }} /bin/{{ inputs. stk }} use workspace {{ inputs.workspace }}
22
33FLAGS=$( echo " --env {{ inputs.environment }} --version {{ inputs.version_tag }}" )
44
@@ -15,7 +15,7 @@ if [ ! -z "{{ inputs.dynamic_inputs }}" ]; then
1515fi
1616
1717if [ ! -z " {{ inputs.verbose }}" ]; then
18- echo " STK DEPLOY PLAN FLAGS = $FLAGS "
18+ echo " $HOME /.{{ inputs.stk }}/bin/{{ inputs.stk }} deploy plan FLAGS = $FLAGS "
1919fi
2020
2121$HOME /.{{ inputs.stk }}/bin/{{ inputs.stk }} deploy plan $FLAGS
Original file line number Diff line number Diff line change 7979 name : tf_log_provider
8080 type : text
8181 required : false
82- - label : " Whether or not checkout is enabled."
83- name : CHECKOUT_BRANCH
84- type : bool
85- default : false
86- required : false
8782 shell :
8883 workdir : .
8984
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ FLAGS=$(echo "-v {{ inputs.path_to_mount }}:/app-volume \
33-e AUTHENTICATE_CLIENT_ID={{ inputs.client_id }} \
44-e AUTHENTICATE_CLIENT_SECRET={{ inputs.client_key }} \
55-e AUTHENTICATE_CLIENT_REALMS={{ inputs.client_realm }} \
6- -e AUTHENTICATE_URL=https://idm .stackspot.com \
6+ -e AUTHENTICATE_URL=https://account-keycloak.stg .stackspot.com \
77-e REPOSITORY_NAME={{ inputs.repository_name }} \
8- -e FEATURES_API_MANAGER=https://runtime-manager.v1 .stackspot.com \
8+ -e FEATURES_API_MANAGER=https://runtime-manager.stg .stackspot.com \
99-e FEATURES_BASEPATH_TMP=/tmp/runtime/deploys \
1010-e FEATURES_BASEPATH_EBS=/opt/runtime \
1111-e FEATURES_TEMPLATES_FILEPATH=/app/ \
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def safe_load(content: str) -> dict:
2121
2222
2323def save_output (name : str , value : str ):
24- with open ("output.log" , 'a' ) as output_file :
24+ with open ("rollback- output.log" , 'a' ) as output_file :
2525 print (f'{ name } ={ value } ' , file = output_file )
2626
2727
You can’t perform that action at this time.
0 commit comments