Skip to content

Commit bdcc32a

Browse files
committed
url fix
1 parent bc940bc commit bdcc32a

File tree

6 files changed

+6
-20
lines changed

6 files changed

+6
-20
lines changed

runtime-cancel-run-action/action.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ spec:
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

runtime-cancel-run-action/script.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
def 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)

runtime-create-manifest-action/templates/script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$HOME/.stk/bin/stk use workspace {{ inputs.workspace }}
1+
$HOME/.{{ inputs.stk }}/bin/{{ inputs.stk }} use workspace {{ inputs.workspace }}
22

33
FLAGS=$(echo "--env {{ inputs.environment }} --version {{ inputs.version_tag }}")
44

@@ -15,7 +15,7 @@ if [ ! -z "{{ inputs.dynamic_inputs }}" ]; then
1515
fi
1616

1717
if [ ! -z "{{ inputs.verbose }}" ]; then
18-
echo "STK DEPLOY PLAN FLAGS = $FLAGS"
18+
echo "$HOME/.{{ inputs.stk }}/bin/{{ inputs.stk }} deploy plan FLAGS = $FLAGS"
1919
fi
2020

2121
$HOME/.{{ inputs.stk }}/bin/{{ inputs.stk }} deploy plan $FLAGS

runtime-destroy-action/action.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ spec:
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

runtime-destroy-action/templates/script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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/ \

runtime-rollback-action/script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def safe_load(content: str) -> dict:
2121

2222

2323
def 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

0 commit comments

Comments
 (0)