From 0c77a3da3fdbd5e35be8e050981f0eb52ab7921c Mon Sep 17 00:00:00 2001 From: Daniel Mohns Date: Thu, 19 Dec 2024 14:40:42 +0100 Subject: [PATCH] Small fixes to Deploy Github action --- ...demo.yaml => release-publish-dockerhub.yaml} | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) rename .github/workflows/{deploy-demo.yaml => release-publish-dockerhub.yaml} (95%) diff --git a/.github/workflows/deploy-demo.yaml b/.github/workflows/release-publish-dockerhub.yaml similarity index 95% rename from .github/workflows/deploy-demo.yaml rename to .github/workflows/release-publish-dockerhub.yaml index 457c81ca..695d45bc 100644 --- a/.github/workflows/deploy-demo.yaml +++ b/.github/workflows/release-publish-dockerhub.yaml @@ -1,4 +1,4 @@ -name: Build and publish images to DockerHub +name: Publish images to DockerHub, deploy Demo environment to AWS on: release: @@ -7,7 +7,7 @@ on: workflow_dispatch: jobs: - release-publish: + publish-dockerhub: runs-on: ubuntu-latest strategy: fail-fast: false @@ -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 @@ -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