Skip to content

Commit 104fffc

Browse files
committed
general fixes
1 parent 784c706 commit 104fffc

File tree

6 files changed

+15
-289
lines changed

6 files changed

+15
-289
lines changed

.github/workflows/lint-quality-check.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
name: Quality Check
22
on:
3-
workflow_call:
4-
secrets:
5-
git-org-token:
6-
required: true
73
pull_request:
84
concurrency:
95
group: ${{ github.workflow }}-${{ github.ref }}

examples/gitlab/stackspot-deploy.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
image: ubuntu:latest
1+
image: <your-image>
22

33
# Define global variables
44
variables:
5-
ENVIRONMENT: "staging"
6-
WORKFLOW_REPO_URL: "https://[email protected]/stack-spot/workflow-stackspot-actions-runtime-selfhosted.git"
5+
WORKFLOW_REPO_URL: "https://@github.com/stack-spot/workflow-stackspot-actions-runtime-selfhosted.git"
76

87
stages:
98
- run_stackspot
@@ -27,6 +26,15 @@ before_script:
2726
stk:
2827
stage: run_stackspot
2928
script:
29+
# You can use this clone directly on the workflow as implemented here, or,
30+
# you checkout this repository locally and publish in your stackspot studio and share it to your app workspace
31+
# in this way you will need to use the action qualifier name (<studio>/<stack>@<version>/<action>) when running the action in the end of this script
32+
# Clone the workflow repository
33+
- git clone $WORKFLOW_REPO_URL
34+
- cd workflow-stackspot-actions-runtime-selfhosted
35+
- run_action_path=$(pwd)
36+
- cd ..
37+
3038
# Export environment variables for StackSpot
3139
- export INPUTS_CLIENT_ID=$STK_CLIENT_ID
3240
- export INPUTS_CLIENT_KEY=$STK_CLIENT_SECRET
@@ -40,18 +48,14 @@ stk:
4048
- export INPUTS_AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
4149
- export INPUTS_AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN
4250
- export INPUTS_ENVIRONMENT=$ENVIRONMENT
51+
- export INPUTS_REPOSITORY_NAME=$CI_PROJECT_NAME
52+
- export INPUTS_VERSION_TAG=$CI_JOB_ID # Change this logic as you wish
4353

4454
# Authenticate with StackSpot
4555
- $STK login --client-id $INPUTS_CLIENT_ID --client-key $INPUTS_CLIENT_KEY --realm $INPUTS_CLIENT_REALM
4656

4757
# Use the specified workspace
4858
- $STK use workspace $STK_WORKSPACE
4959

50-
# Clone the workflow repository
51-
- git clone $WORKFLOW_REPO_URL
52-
- cd workflow-stackspot-actions-runtime-selfhosted
53-
- run_action_path=$(pwd)
54-
- cd ..
55-
5660
# Run the StackSpot action
57-
- $STK run action $run_action_path --workflow_type deploy --version_tag $CI_JOB_ID --repository_name $CI_PROJECT_NAME --non-interactive
61+
- $STK run action $run_action_path --workflow_type deploy --non-interactive

runtime-matrix/action.yaml

Lines changed: 0 additions & 98 deletions
This file was deleted.

runtime-matrix/docs/en-us/docs.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

runtime-matrix/script.py

Lines changed: 0 additions & 175 deletions
This file was deleted.

script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def run_tasks(file_tasks: str, run_action: RunAction):
6363
def run(metadata):
6464
workflows = dict(
6565
deploy=deploy_workflow,
66-
cancel_deploy=cancel_deploy_run,
66+
cancel=cancel_deploy_run,
6767
rollback_deploy=rollback_deploy_run,
6868
)
6969
run_action = RunAction(metadata)

0 commit comments

Comments
 (0)