Skip to content

Commit

Permalink
Minor modification to the deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bhvishal9 committed Aug 21, 2024
1 parent 4a79e02 commit 9dfcd49
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ jobs:
uses: ./.github/workflows/helpers-deploy-argo.yaml
secrets:
GH_PAT: ${{ secrets.GH_PAT }}
with:
aws-role-arn: ${{ github.ref == 'refs/heads/production' && secrets.PRODUCTION_ECR_ROLE_ARN || secrets.STAGING_ECR_ROLE_ARN }}
7 changes: 6 additions & 1 deletion .github/workflows/helpers-deploy-argo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ name: helpers-deploy-argo

on:
workflow_call:
inputs:
aws-role-arn:
description: "The AWS role to assume for ECR"
required: true
type: string
secrets:
GH_PAT:
description: "The GitHub Personal Access Token to use for checking out the helm-config repository"
Expand All @@ -20,7 +25,7 @@ jobs:
uses: ./.github/workflows/helpers-build-docker-image.yaml
name: Build Docker image
with:
aws-role-arn: ${{ github.ref == 'refs/heads/production' && vars.PRODUCTION_ECR_ROLE_ARN || vars.STAGING_ECR_ROLE_ARN }}
aws-role-arn: ${{ inputs.aws-role-arn }}
docker_file_path: Dockerfile

update-helm-values:
Expand Down

0 comments on commit 9dfcd49

Please sign in to comment.