Skip to content

Commit 18dcd06

Browse files
DEV to STG
Merge pull request #28 from KeyValueSoftwareSystems/dev
2 parents 79232dc + 89cacf8 commit 18dcd06

2 files changed

Lines changed: 32 additions & 4 deletions

File tree

.github/workflows/cd-server.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/cd-ui.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)