Skip to content

Commit

Permalink
Merge pull request #470 from TANguyen1893/add-kustomization
Browse files Browse the repository at this point in the history
Fix: deployment stage
  • Loading branch information
TANguyen1893 authored Dec 10, 2020
2 parents 6bd63d3 + e11da19 commit 701abfa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/treetracker-admin-server-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ jobs:
- name: Install kustomize
run: curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
- name: Copy kustomize.yml
run: cp deployment/kustomize/kustomization.yaml deployment/kustomization.yaml
run: cp server/deployment/kustomize/kustomization.yaml server/deployment/kustomization.yaml
- name: Run kustomize
run: (cd deployment && ../kustomize edit set image greenstand/treetracker-admin-api:${{ steps.package-version.outputs.current-version }} )
run: (cd server/deployment && ../../kustomize edit set image greenstand/treetracker-admin-api:${{ steps.package-version.outputs.current-version }} )
- name: Install doctl for kubernetes
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_TOKEN }}
- name: Save DigitalOcean kubeconfig
run: doctl kubernetes cluster kubeconfig save ${{ secrets.CLUSTER_NAME }}
- name: Update kubernetes resources
run: kubectl -n development apply --wait -k ./deployment/
run: kubectl -n development apply --wait -k server/deployment/

0 comments on commit 701abfa

Please sign in to comment.