From e3115797909497505d787e09b9ee1b88b24207b4 Mon Sep 17 00:00:00 2001 From: Harold Wanyama Date: Thu, 6 Jun 2024 18:17:04 +0300 Subject: [PATCH] Bug/CD Dev - Using upgraded serverless version deploy command Signed-off-by: Harold Wanyama --- .github/workflows/build-pr.yml | 10 ++-------- .github/workflows/deploy-dev.yml | 2 +- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index 06eb0232b..c6dd52111 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -41,10 +41,7 @@ jobs: ${{ runner.os }}-go- - name: Configure Git to clone private Github repos - run: git config --global url."https://${TOKEN_USER}:${TOKEN}@github.com".insteadOf "https://github.com" - env: - TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - TOKEN_USER: ${{ secrets.PERSONAL_ACCESS_TOKEN_USER }} + run: git config --global url."https://${{ secrets.GH_PAT }}@github.com/".insteadOf "https://github.com/" - name: Add OS Tools run: sudo apt update && sudo apt-get install file -y @@ -78,10 +75,7 @@ jobs: - name: Go Dependencies working-directory: cla-backend-go - run: | - go mod tidy - go mod download - make deps + run: make deps - name: Go Swagger Generate working-directory: cla-backend-go diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 32b16c280..1c0910d11 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -182,7 +182,7 @@ jobs: if [[ ! -f bin/backend-aws-lambda ]]; then echo "Missing bin/backend-aws-lambda binary file. Exiting..."; exit 1; fi if [[ ! -f bin/user-subscribe-lambda ]]; then echo "Missing bin/user-subscribe-lambda binary file. Exiting..."; exit 1; fi yarn install - yarn sls deploy --force --stage ${STAGE} --region us-east-2 + sls deploy --force --stage ${STAGE} --region us-east-2 - name: EasyCLA v2 Service Check run: |