Skip to content

Commit dfbffdb

Browse files
committed
add working directory and update readme
1 parent 34c50f6 commit dfbffdb

3 files changed

Lines changed: 14 additions & 9 deletions

File tree

deploy/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: 'Deploy to Kubernetes'
2-
description: 'Deploy an application to a Kubernetes cluster.'
2+
description: 'Deploy an application to a Kubernetes cluster'
33

44
inputs:
5+
working-directory:
6+
description: 'The working directory'
7+
default: '.'
58
deployment-file:
69
description: 'Deployment file for kubectl to apply'
710
required: true
@@ -16,6 +19,7 @@ runs:
1619
using: "composite"
1720
steps:
1821
- name: Deploy to Kubernetes
22+
working-directory: ${{ inputs.working-directory }}
1923
run: kubectl apply -f ${{ inputs.deployment-file }}
2024
shell: bash
2125

do-setup-kubectl/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: 'Setup kubectl for DigitalOcean.'
2-
description: 'Setup DigitalOcean CLI and configure kubectl.'
2+
description: 'Setup DigitalOcean CLI and configure kubectl'
33

44
inputs:
55
digital-ocean-token:

readme.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Setup Digital-Ocean CLI and configure Kubernetes.
1919
2020
#### Inputs
2121
22-
Following inputs can be used as `step.with` keys
22+
The following inputs can be used as `step.with` keys:
2323

2424
| Name | Required/Default | Description |
2525
|--------------------------|--------------------|---------------------------------|
@@ -43,13 +43,14 @@ Deploy application to a Kubernetes Cluster. Requires Kubernetes to be configured
4343

4444
#### Inputs
4545

46-
Following inputs can be used as `step.with` keys
46+
The following inputs can be used as `step.with` keys:
4747

48-
| Name | Required/Default | Description |
49-
|----------------------|--------------------|-------------------------------------------|
50-
| `deployment-file` | required | Deployment file for kubectl to apply |
51-
| `namespace-name` | required | Kubernetes namespace name |
52-
| `deployment-name` | required | Kubernetes deployment name |
48+
| Name | Required/Default | Description |
49+
|------------------------|----------------------|--------------------------------------------|
50+
| `deployment-file` | required | Deployment file for kubectl to apply |
51+
| `namespace-name` | required | Kubernetes namespace name |
52+
| `deployment-name` | required | Kubernetes deployment name |
53+
| `working-directory` | `.` | The working directory |
5354

5455

5556
## Versioning

0 commit comments

Comments
 (0)