Skip to content

Commit

Permalink
fix: restart deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbpvsc committed Sep 10, 2024
1 parent a6266dd commit 038a8ec
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docker-build-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,31 @@ jobs:
- name: Push Docker image with 'latest' tag to Artifact Registry
run: |
docker push us-east1-docker.pkg.dev/marginfi-dev/main/eva01:latest
deploy:
runs-on: ubuntu-latest
needs: build

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up kubectl
uses: azure/setup-kubectl@v3
with:
version: 'latest'

- name: Set up Kubeconfig
env:
KUBECONFIG: ${{ secrets.KUBECONFIG }}
run: |
echo "$KUBECONFIG" > ~/.kube/config
- name: Get all eva01-* deployments
id: get-deployments
run: |
kubectl get deployments --no-headers -o custom-columns=":metadata.name" | grep '^eva01-' > deployments.txt
- name: Restart all eva01-* deployments
run: |
cat deployments.txt | xargs -I {} kubectl rollout restart deployment {}

0 comments on commit 038a8ec

Please sign in to comment.