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

Small fixes to Deploy Github action #441

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and publish images to DockerHub
name: Publish images to DockerHub, deploy Demo environment to AWS

on:
release:
Expand All @@ -7,7 +7,7 @@ on:
workflow_dispatch:

jobs:
release-publish:
publish-dockerhub:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -71,9 +71,9 @@ jobs:
repository: ${{ matrix.image.repo }}
short-description: Open Source Management Tool for Decentralized Utilities

deploy:
deploy-aws:
runs-on: ubuntu-latest
needs: release-publish
needs: publish-dockerhub

steps:
- name: Checkout code
Expand All @@ -97,12 +97,11 @@ jobs:

- name: Deploy to EKS
run: |
kubectl apply -f k8s/services/mpm-frontend.yaml
kubectl apply -f k8s/services/mpm-backend.yaml

kubectl rollout restart deployment/mpm-backend
kubectl apply -f k8s/deployments/mpm-frontend.yaml
kubectl apply -f k8s/deployments/mpm-backend.yaml

kubectl rollout restart deployment/mpm-frontend
kubectl apply -f k8s/deployments/mpm-frontend.yaml

kubectl apply -f k8s/services/mpm-frontend.yaml
kubectl apply -f k8s/services/mpm-backend.yaml
kubectl rollout restart deployment/mpm-backend
Loading