From c803830469c7ebaada973592e5df83e661bca9c5 Mon Sep 17 00:00:00 2001 From: Sina Iman Date: Wed, 20 Mar 2024 18:51:59 -0400 Subject: [PATCH] ensure kubectl apply is executed across all deployments in GH action --- .github/workflows/build-isolated-media-server.yaml | 2 ++ .github/workflows/build-nodes-media.yaml | 2 ++ .../{network_policies.yaml => network_policies_prod.yaml} | 0 3 files changed, 4 insertions(+) rename desci-media-isolated/kubernetes/{network_policies.yaml => network_policies_prod.yaml} (100%) diff --git a/.github/workflows/build-isolated-media-server.yaml b/.github/workflows/build-isolated-media-server.yaml index cbec9175b..7a4ee9b27 100644 --- a/.github/workflows/build-isolated-media-server.yaml +++ b/.github/workflows/build-isolated-media-server.yaml @@ -102,11 +102,13 @@ jobs: # uses: steebchen/kubectl@v2.0.0 if: github.ref == 'refs/heads/develop' run: | # defaults to latest kubectl binary version + kubectl apply -f desci-media-isolated/kubernetes/deployment_dev.yaml kubectl set image deployment/desci-media-isolated-dev desci-media-isolated-dev=$AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$CONTAINER_IMAGE-dev:${{ github.sha }} --record - name: Deploy to EKS (PROD) if: github.ref == 'refs/heads/main' run: | # defaults to latest kubectl binary version + kubectl apply -f desci-media-isolated/kubernetes/deployment_prod.yaml kubectl set image deployment/desci-media-isolated-prod desci-media-isolated-prod=$AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$CONTAINER_IMAGE-prod:${{ github.sha }} --record - name: Verify EKS Deployment (DEV) diff --git a/.github/workflows/build-nodes-media.yaml b/.github/workflows/build-nodes-media.yaml index d9b1c3576..95a9fb1b5 100644 --- a/.github/workflows/build-nodes-media.yaml +++ b/.github/workflows/build-nodes-media.yaml @@ -101,11 +101,13 @@ jobs: # uses: steebchen/kubectl@v2.0.0 if: github.ref == 'refs/heads/develop' run: | # defaults to latest kubectl binary version + kubectl apply -f nodes-media/kubernetes/deployment_dev.yaml kubectl set image deployment/nodes-media-server-dev nodes-media-server-dev=$AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$CONTAINER_IMAGE-dev:${{ github.sha }} --record - name: Deploy to EKS (PROD) if: github.ref == 'refs/heads/main' run: | # defaults to latest kubectl binary version + kubectl apply -f nodes-media/kubernetes/deployment_prod.yaml kubectl set image deployment/nodes-media-server nodes-media-server=$AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$CONTAINER_IMAGE:${{ github.sha }} --record - name: Verify EKS Deployment (DEV) diff --git a/desci-media-isolated/kubernetes/network_policies.yaml b/desci-media-isolated/kubernetes/network_policies_prod.yaml similarity index 100% rename from desci-media-isolated/kubernetes/network_policies.yaml rename to desci-media-isolated/kubernetes/network_policies_prod.yaml