Skip to content

Commit

Permalink
get rid of automatic deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
rrozek committed Mar 22, 2024
1 parent 49aef77 commit 2571812
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 65 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/build-and-push-ecr-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,35 +59,3 @@ jobs:
tags: ${{ steps.login-ecr.outputs.registry }}/tokenguard-dev-dashboard-creator-server:${{ github.sha }}
- name: Image digest
run: echo ${{ steps.build-push-ecr.outputs.digest }}

deploy-eks:
name: Deploy image on EKS(tokenguard-dev)
needs: build-push
runs-on: self-hosted

steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_DEV }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_DEV }}
aws-region: ${{ env.AWS_REGION }}
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Deploy to tokenguard-dev
uses: christallire/[email protected]
env:
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA_DEV }}
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: tokenguard-dev-dashboard-creator-server
IMAGE_TAG: ${{ github.sha }}
with:
args: -n dev set image deployment/dashboard-creator-server dashboard-creator-server=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
- name: verify deployment
uses: christallire/[email protected]
env:
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA_DEV }}
with:
args: -n dev rollout status deployment/dashboard-creator-server
33 changes: 0 additions & 33 deletions .github/workflows/build-and-push-ecr-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,36 +59,3 @@ jobs:
tags: ${{ steps.login-ecr.outputs.registry }}/tokenguard-prod-dashboard-creator-server:${{ github.sha }}
- name: Image digest
run: echo ${{ steps.build-push-ecr.outputs.digest }}

deploy-eks:
name: Deploy image on EKS(tokenguard-prod)
needs: build-push
runs-on: self-hosted

steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_PROD }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_PROD }}
aws-region: ${{ env.AWS_REGION }}
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Deploy to tokenguard-prod
uses: christallire/[email protected]
env:
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA_PROD }}
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
ECR_REPOSITORY: tokenguard-prod-dashboard-creator-server
IMAGE_TAG: ${{ github.sha }}
with:
args: -n prod set image deployment/dashboard-creator-server dashboard-creator-server=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG

- name: verify deployment
uses: christallire/[email protected]
env:
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA_PROD }}
with:
args: -n prod rollout status deployment/dashboard-creator-server

0 comments on commit 2571812

Please sign in to comment.