Update kubernetes-cd.yml

This commit is contained in:
Cadey Ratio 2019-09-07 11:55:21 -04:00 committed by GitHub
parent fd852282ee
commit 4777c63c89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 5 deletions

View File

@ -51,10 +51,17 @@ jobs:
--useProdLE=true > deploy.yml
- name: Configure Kubernetes
uses: digitalocean/action-doctl@v1.3.0
run: |
doctl kubernetes cluster kubeconfig show kubermemes > $HOME/.kubeconfig
with:
entrypoint: /usr/local/bin/doctl
args: kubernetes cluster kubeconfig show kubermemes > $HOME/.kubeconfig
- name: Deploy
uses: docker://lachlanevenson/k8s-kubectl
run: |
kubectl --kubeconfig=$HOME/.kubeconfig apply -f deploy.yml
kubectl --kubeconfig=$HOME/.kubeconfig rollout status deployment/christinewebsite
with:
entrypoint: /usr/local/bin/kubectl
args: |
- name: Verify
uses: docker://lachlanevenson/k8s-kubectl
with:
entrypoint: /usr/local/bin/kubectl
args: |
--kubeconfig=$HOME/.kubeconfig rollout status deployment/christinewebsite