From 335dd00b81f07168a8b865e41bd7b132e87d286a Mon Sep 17 00:00:00 2001 From: tinydjp Date: Fri, 20 Sep 2024 22:16:12 +0800 Subject: [PATCH] add .env process --- .github/workflows/cicd.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 28dcd17..ba57eb6 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -13,13 +13,16 @@ jobs: steps: - name: Git clone the repository uses: actions/checkout@v4 + - name: Create .env file from secret + run: | + echo "${{ secrets.ENV_CONTENTS }}" > .env - name: Build image env: BUILD_ARG: ${{ github.ref_name }} run: | docker build -t vota-bridge-ui:local -f Dockerfile . - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@master + uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: ${{ secrets.AWS_ROLE }} aws-region: ap-southeast-1