Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eks release workflow #405

Conversation

Delyc
Copy link
Contributor

@Delyc Delyc commented Dec 11, 2024

Brief summary of the change made

Are there any other side effects of this change that we should be aware of?

Describe how you tested your changes?

Pull Request checklist

Please confirm you have completed any of the necessary steps below.

  • Meaningful Pull Request title and description
  • Changes tested as described above
  • Added appropriate documentation for the change.
  • Created GitHub issues for any relevant followup/future enhancements if appropriate.

@Delyc Delyc linked an issue Dec 11, 2024 that may be closed by this pull request
3 tasks
@Delyc Delyc marked this pull request as draft December 11, 2024 12:31
@Delyc Delyc requested a review from dmohns December 19, 2024 09:19
@Delyc Delyc marked this pull request as ready for review December 19, 2024 09:19
Copy link
Member

@dmohns dmohns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few comments if you could address them

Comment on lines 3 to 10
metadata:
name: mpm-backend
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, please do not change this file.

Comment on lines 35 to 40
if kubectl get deployment mpm-backend; then
kubectl rollout restart deployment/mpm-backend
else
echo "mpm-backend deployment does not exist, applying initial deployment..."
kubectl apply -f k8s/deployments/mpm-backend.yaml
fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need the if/else here. We always want to run both apply and rollout restart.

  • The apply is needed such that changes to the kubernetes yaml files are picked up. Which shouldn't happen that often.
  • The rollout restart is needed such that the new image gets deployed.

Comment on lines 42 to 47
if kubectl get deployment mpm-frontend; then
kubectl rollout restart deployment/mpm-frontend
else
echo "mpm-frontend deployment does not exist, applying initial deployment..."
kubectl apply -f k8s/deployments/mpm-frontend.yaml
fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add a step that runs apply on services.

Comment on lines 1 to 7
name: Deploy to EKS

on:
release:
types:
- published
workflow_dispatch:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having this as a separate workflow won't work. If a new release gets created this will run immediately. However, the deploy to DockerHub job takes around 1h usually. So, we Pull the Docker image before the new one is even available.

Could you instead, move the deploy job into the already existing release-publish-dockerhub.yaml, also rename it to deploy-demo. Then please add a need (see here) to depend on the release-publish

@Delyc Delyc requested a review from dmohns December 19, 2024 13:24
Copy link
Member

@dmohns dmohns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dmohns dmohns merged commit ff00c79 into main Dec 19, 2024
10 checks passed
@dmohns dmohns deleted the 343-feature-request-reduce-the-need-for-container-interaction-in-demo-environment branch December 19, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Automatically re-deploy Demo version after new release
2 participants