File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,6 +122,22 @@ jobs:
122122 - name : Checkout code from action
123123 uses : actions/checkout@v2
124124
125+ - name : Checkout values.yaml from siren-infra
126+ uses : actions/checkout@v4
127+ with :
128+ repository : KeyvalueSoftwareSystems/siren-infra
129+ ref : main
130+ token : ${{secrets.SIREN_PAT}}
131+ sparse-checkout : |
132+ k8s/siren-services/${{ env.SERVICE_NAME }}/${{ needs.prepare-env.outputs.ENV }}-values.yaml
133+ sparse-checkout-cone-mode : false
134+
135+ - name : Rename values.yaml for Helm
136+ shell : bash
137+ run : |
138+ cp k8s/siren-services/${{ env.SERVICE_NAME }}/${{ needs.prepare-env.outputs.ENV }}-values.yaml ./values.yaml
139+ cat ./values.yaml
140+
125141 - name : Configure AWS credentials
126142 uses : aws-actions/configure-aws-credentials@v4
127143 with :
@@ -132,8 +148,6 @@ jobs:
132148 shell : bash
133149 run : |
134150 aws eks update-kubeconfig --name ${{ needs.prepare-env.outputs.K8S_CLUSTER }}
135- aws s3 cp s3://${{ needs.prepare-env.outputs.ENVIRONMENT_BUCKET }}/helm/${{ env.SERVICE_NAME }}/values.yaml ./values.yaml
136- cat ./values.yaml
137151 aws ecr get-login-password --region ${{ env.AWS_REGION }} | helm registry login --username AWS --password-stdin ${{ vars[env.AWS_ACCOUNT_ID] }}.dkr.ecr.${{ env.AWS_REGION }}.amazonaws.com
138152
139153 # Construct base Helm command
Original file line number Diff line number Diff line change @@ -122,6 +122,22 @@ jobs:
122122 - name : Checkout code from action
123123 uses : actions/checkout@v2
124124
125+ - name : Checkout values.yaml from siren-infra
126+ uses : actions/checkout@v4
127+ with :
128+ repository : KeyvalueSoftwareSystems/siren-infra
129+ ref : main
130+ token : ${{secrets.SIREN_PAT}}
131+ sparse-checkout : |
132+ k8s/siren-services/${{ env.SERVICE_NAME }}/${{ needs.prepare-env.outputs.ENV }}-values.yaml
133+ sparse-checkout-cone-mode : false
134+
135+ - name : Rename values.yaml for Helm
136+ shell : bash
137+ run : |
138+ cp k8s/siren-services/${{ env.SERVICE_NAME }}/${{ needs.prepare-env.outputs.ENV }}-values.yaml ./values.yaml
139+ cat ./values.yaml
140+
125141 - name : Configure AWS credentials
126142 uses : aws-actions/configure-aws-credentials@v4
127143 with :
@@ -132,8 +148,6 @@ jobs:
132148 shell : bash
133149 run : |
134150 aws eks update-kubeconfig --name ${{ needs.prepare-env.outputs.K8S_CLUSTER }}
135- aws s3 cp s3://${{ needs.prepare-env.outputs.ENVIRONMENT_BUCKET }}/helm/${{ env.SERVICE_NAME }}/values.yaml ./values.yaml
136- cat ./values.yaml
137151 aws ecr get-login-password --region ${{ env.AWS_REGION }} | helm registry login --username AWS --password-stdin ${{ vars[env.AWS_ACCOUNT_ID] }}.dkr.ecr.${{ env.AWS_REGION }}.amazonaws.com
138152
139153 # Construct base Helm command
You can’t perform that action at this time.
0 commit comments