Skip to content

Commit 753b465

Browse files
Merge pull request #3 from stack-spot/feature/decoupling-things
Feature/decoupling things
2 parents 1cd7c03 + 655d34d commit 753b465

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939
AWS_REGION: sa-east-1
4040
REPOSITORY_NAME: my-repository-name
4141
RUN_TASK_ID: ${{ matrix.task.runTaskId }}
42+
CONTAINER_URL: my/container-url # not mandatory
43+
FEATURES_TERRAFORM_MODULES: ... # not mandatory
4244
```
4345
4446
* * *
@@ -58,6 +60,7 @@ Field | Mandatory | Observation
5860
**AWS_REGION** | YES | AWS region where resources with be provisioned. Used for tf backend as well (e.g: `us-east-1`).
5961
**RUN_TASK_ID** | YES | StackSpot Runtime task id to be executed, according to [runtime-manager-action](https://github.com/stack-spot/runtime-manager-action).
6062
**REPOSITORY_NAME** | YES | Repository name to checkout during task process.
63+
**CONTAINER_URL** | NO | Container url reference (e.g `stackspot/image`)
6164
**FEATURES_TERRAFORM_MODULES** | NO | List of external terraform modules allowed
6265

6366
* * *

action.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ inputs:
3333
required: false
3434
RUN_TASK_ID:
3535
description: "Runtime Run Task Id"
36-
required: true
36+
required: true
37+
CONTAINER_URL:
38+
description: "Deploy Container url"
39+
default: stackspot/runtime-job-deploy
3740
FEATURES_TERRAFORM_MODULES:
3841
description: "Terraform Modules"
3942
required: false
@@ -76,7 +79,7 @@ runs:
7679
-e AWS_REGION=${{ inputs.AWS_REGION }} \
7780
-e FEATURES_TERRAFORM_MODULES='${{ inputs.FEATURES_TERRAFORM_MODULES }}' \
7881
--entrypoint=/app/stackspot-runtime-job-deploy \
79-
stackspot/runtime-job-deploy:latest start --run-task-id="${{ inputs.RUN_TASK_ID }}"
82+
${{ inputs.CONTAINER_URL }}:latest start --run-task-id="${{ inputs.RUN_TASK_ID }}"
8083
shell: bash
8184

8285
- name: Run Runtime Action Deploy
@@ -100,7 +103,7 @@ runs:
100103
-e AWS_REGION=${{ inputs.AWS_REGION }} \
101104
-e FEATURES_TERRAFORM_MODULES='${{ inputs.FEATURES_TERRAFORM_MODULES }}' \
102105
--entrypoint=/app/stackspot-runtime-job-deploy \
103-
stackspot/runtime-job-deploy:latest start --run-task-id="${{ inputs.RUN_TASK_ID }}"
106+
${{ inputs.CONTAINER_URL }}:latest start --run-task-id="${{ inputs.RUN_TASK_ID }}"
104107
shell: bash
105108

106109
branding:

0 commit comments

Comments
 (0)