Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/lint-quality-check.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: Quality Check
on:
workflow_call:
secrets:
git-org-token:
required: true
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/stk-quality-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,4 @@ jobs:
cd runtime-rollback-action
$HOME/.stk/bin/stk validate action

- name: Validate runtime-matrix action
run: |
cd runtime-matrix
$HOME/.stk/bin/stk validate action


24 changes: 14 additions & 10 deletions examples/gitlab/stackspot-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
image: ubuntu:latest
image: <your-image>

# Define global variables
variables:
ENVIRONMENT: "staging"
WORKFLOW_REPO_URL: "https://$GITHUB_PAT@github.com/stack-spot/workflow-stackspot-actions-runtime-selfhosted.git"
WORKFLOW_REPO_URL: "https://@github.com/stack-spot/workflow-stackspot-actions-runtime-selfhosted.git"

stages:
- run_stackspot
Expand All @@ -27,6 +26,15 @@ before_script:
stk:
stage: run_stackspot
script:
# You can use this clone directly on the workflow as implemented here, or,
# you checkout this repository locally and publish in your stackspot studio and share it to your app workspace
# 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
# Clone the workflow repository
- git clone $WORKFLOW_REPO_URL
- cd workflow-stackspot-actions-runtime-selfhosted
- run_action_path=$(pwd)
- cd ..

# Export environment variables for StackSpot
- export INPUTS_CLIENT_ID=$STK_CLIENT_ID
- export INPUTS_CLIENT_KEY=$STK_CLIENT_SECRET
Expand All @@ -40,18 +48,14 @@ stk:
- export INPUTS_AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY
- export INPUTS_AWS_SESSION_TOKEN=$AWS_SESSION_TOKEN
- export INPUTS_ENVIRONMENT=$ENVIRONMENT
- export INPUTS_REPOSITORY_NAME=$CI_PROJECT_NAME
- export INPUTS_VERSION_TAG=$CI_JOB_ID # Change this logic as you wish

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

# Use the specified workspace
- $STK use workspace $STK_WORKSPACE

# Clone the workflow repository
- git clone $WORKFLOW_REPO_URL
- cd workflow-stackspot-actions-runtime-selfhosted
- run_action_path=$(pwd)
- cd ..

# Run the StackSpot action
- $STK run action $run_action_path --workflow_type deploy --version_tag $CI_JOB_ID --repository_name $CI_PROJECT_NAME --non-interactive
- $STK run action $run_action_path --workflow_type deploy --non-interactive
98 changes: 0 additions & 98 deletions runtime-matrix/action.yaml

This file was deleted.

1 change: 0 additions & 1 deletion runtime-matrix/docs/en-us/docs.md

This file was deleted.

175 changes: 0 additions & 175 deletions runtime-matrix/script.py

This file was deleted.

2 changes: 1 addition & 1 deletion script.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def run_tasks(file_tasks: str, run_action: RunAction):
def run(metadata):
workflows = dict(
deploy=deploy_workflow,
cancel_deploy=cancel_deploy_run,
cancel=cancel_deploy_run,
rollback_deploy=rollback_deploy_run,
)
run_action = RunAction(metadata)
Expand Down
Loading