Update kubernetes-cd.yml

This commit is contained in:
Cadey Ratio 2019-09-07 13:23:10 -04:00 committed by GitHub
parent 1ed7e00a98
commit 88c2d2859e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 7 deletions

View File

@ -51,16 +51,13 @@ jobs:
--replicas=1 \
--useProdLE=true > deploy.yml
- name: Configure Kubernetes
uses: docker://digitalocean/doctl:1.30.0
with:
entrypoint: /bin/sh -c
args: |
doctl auth login -t $DIGITALOCEAN_ACCESS_TOKEN
doctl kubernetes cluster kubeconfig show kubermemes > $HOME/.kubeconfig
run: |
curl https://github.com/digitalocean/doctl/releases/download/v1.30.0/doctl-1.30.0-linux-amd64.tar.gz | tar xz
./doctl auth login -t $DIGITALOCEAN_ACCESS_TOKEN
./doctl kubernetes cluster kubeconfig show kubermemes > $HOME/.kubeconfig
env:
DIGITALOCEAN_ACCESS_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
- name: Deploy
uses: docker://lachlanevenson/k8s-kubectl
with:
entrypoint: /usr/local/bin/kubectl
args: |