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