Skip to content

Commit bf590ee

Browse files
committed
rename action and replace parameter
1 parent 735b999 commit bf590ee

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

deploy/action.yml

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

44
inputs:
5-
environment:
5+
deployment-file:
66
description: '"test" or "prod"'
77
namespace-name:
88
description: 'Kubernetes namespace name'
@@ -13,7 +13,7 @@ runs:
1313
using: "composite"
1414
steps:
1515
- name: Deploy to Kubernetes
16-
run: kubectl apply -f infrastructure/kubernetes.${{ inputs.environment }}.yml
16+
run: kubectl apply -f ${{ inputs.deployment-file }}
1717
shell: bash
1818

1919
- name: Verify deployment

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Setup Digital-Ocean CLI and configure Kubernetes.
99
### Example
1010

1111
```yaml
12-
- uses: aboutbits/github-actions-kubernetes/setup-kubectl@v1
12+
- uses: aboutbits/github-actions-kubernetes/do-setup-kubectl@v1
1313
with:
1414
digital-ocean-token: ${{ secrets.DIGITALOCEAN_TOKEN }}
1515
cluster-name: ${{ env.CLUSTER_NAME }}
@@ -24,7 +24,7 @@ Deploy application to a Kubernetes Cluster. Requires Kubernetes to be configured
2424
```yaml
2525
- uses: aboutbits/github-actions-kubernetes/deploy@v1
2626
with:
27-
environment: 'test'
27+
deployment-file: 'infrastructure/kubernetes.prod.yml'
2828
namespace-name: ${{ env.NAMESPACE_NAME }}
2929
deployment-name: ${{ env.DEPLOYMENT_NAME }}
3030
```

0 commit comments

Comments
 (0)