Skip to content

Commit 870623e

Browse files
committed
feat: change the formatter to configmap
1 parent eb97ce3 commit 870623e

1 file changed

Lines changed: 3 additions & 14 deletions

File tree

.github/workflows/base_build_push_ecr.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ jobs:
5959
- name: Creating .env from aws parameter store
6060
uses: almerindo/action-env-from-aws-ssm@next
6161
with:
62-
output: ./environments/.env
62+
output: ./environments/.env.yaml
6363
ssm-path: '/${{ inputs.WF_ENV_TYPE }}/${{ inputs.WF_SERVICE_NAME }}'
64-
format: yaml
64+
format: configmap
6565
env:
6666
AWS_ACCESS_KEY_ID: ${{ secrets.WF_AWS_ACCESS_KEY_ID }}
6767
AWS_SECRET_ACCESS_KEY: ${{ secrets.WF_AWS_SECRET_ACCESS_KEY }}
@@ -70,18 +70,7 @@ jobs:
7070
- name: Testing the YAML
7171
run: |
7272
echo "Showing the yaml"
73-
cat ./environments/.env
74-
75-
echo 'apiVersion: v1
76-
kind: ConfigMap
77-
metadata:
78-
name: ${KUBE_NAME}
79-
namespace: ${KUBE_NAME}-env-cm
80-
data:' > myyaml
81-
cat ./environments/.env >> myyaml
82-
83-
echo "RESULTADO FINAL"
84-
cat myyaml
73+
cat ./environments/.env.yaml
8574
8675
- name: Login to Amazon ECR
8776
id: login-ecr

0 commit comments

Comments
 (0)