Skip to content

Commit

Permalink
Update service-eat-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGANGLOFF authored Apr 22, 2024
1 parent e58fe51 commit 7298e0b
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/service-eat-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,19 @@ jobs:
- name: Push the Docker image
run: docker push d3spina/t-web-800:eat-latest

- name: Set up Kubeconfig
run: |
mkdir -p $HOME/.kube
echo "${{ secrets.KUBE_CONFIG }}" | base64 --decode > $HOME/.kube/config
- name: Install doctl
run: sudo snap connect doctl:kube-config

- name: Install doctl
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}

- name: Save DigitalOcean kubeconfig
run: doctl kubernetes cluster kubeconfig save T-WEB-800

- name: Deploy to Kubernetes
run: |
kubectl apply -f deployment.yaml --validate=false
kubectl apply -f service.yaml --validate=false
kubectl apply -f deployment.yaml
kubectl apply -f service.yaml
kubectl rollout status deployment/eat -n eat

0 comments on commit 7298e0b

Please sign in to comment.