Skip to content

Commit

Permalink
workflow update
Browse files Browse the repository at this point in the history
  • Loading branch information
m1u1s1 committed Nov 15, 2024
1 parent b627a16 commit ee36f17
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ jobs:
# Login to DigitalOcean Droplet and trigger deployment updates
- name: Deploy to DigitalOcean
run: |
sshpass -p "$DO_SSH_PASSWORD" ssh -o StrictHostKeyChecking=no root@$DO_REMOTE << EOF
echo "Updating backend and frontend deployments"
kubectl set image deployment/frontend frontend=cmpe451group7/frontend:${{ github.sha }} --namespace=default
kubectl set image deployment/backend backend=cmpe451group7/backend:${{ github.sha }} --namespace=default
kubectl rollout status deployment/frontend --timeout=5m --namespace=default
kubectl rollout status deployment/backend --timeout=5m --namespace=default
sshpass -p "$DO_SSH_PASSWORD" ssh -o StrictHostKeyChecking=no root@$DO_REMOTE <<EOF
echo "Updating backend and frontend deployments"
kubectl set image deployment/frontend frontend=cmpe451group7/frontend:b627a16df72e654b1fc3a66b50ff9cd917a3a774 --namespace=default
kubectl set image deployment/backend backend=cmpe451group7/backend:b627a16df72e654b1fc3a66b50ff9cd917a3a774 --namespace=default
kubectl rollout status deployment/frontend --timeout=5m --namespace=default
kubectl rollout status deployment/backend --timeout=5m --namespace=default
EOF
# Sleep before checking pod status
Expand Down

0 comments on commit ee36f17

Please sign in to comment.