From 7169920e9b05e8c8cad2c13cd4cf6ca211b791f3 Mon Sep 17 00:00:00 2001 From: smit95tpatel Date: Fri, 29 Apr 2022 13:31:15 +0530 Subject: [PATCH] feat: testing workflow --- .github/workflows/ci.yml | 4 +++- Dockerfile.base | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 65e6c38b..fc504625 100755 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,7 +60,9 @@ jobs: tags: razorpay/statping:service_${{ github.sha }} push: true file: ./Dockerfile - build-args: GIT_COMMIT_HASH=${{ github.sha }} + build-args: | + GIT_COMMIT_HASH=${{ github.sha }} + GIT_TOKEN=${{ secrets.GIT_TOKEN }} cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache env: diff --git a/Dockerfile.base b/Dockerfile.base index 6e66c097..152b7ef3 100644 --- a/Dockerfile.base +++ b/Dockerfile.base @@ -14,6 +14,7 @@ RUN yarn build && yarn cache clean WORKDIR /statping-react COPY ./react-frontend/package.json . COPY ./react-frontend/yarn.lock . +COPY ./react-frontend/.npmrc . RUN yarn install --pure-lockfile --network-timeout 1000000 COPY ./react-frontend/ . RUN yarn build && yarn cache clean @@ -42,9 +43,9 @@ ENV GO111MODULE on ENV CGO_ENABLED 1 RUN go get github.com/stretchr/testify/assert && \ go get github.com/stretchr/testify/require && \ - go get github.com/GeertJohan/go.rice/rice && \ - go get github.com/cortesi/modd/cmd/modd && \ - go get github.com/crazy-max/xgo + go get github.com/GeertJohan/go.rice/rice && \ + go get github.com/cortesi/modd/cmd/modd && \ + go get github.com/crazy-max/xgo COPY . . COPY --from=frontend /statping/dist/ ./source/dist/ COPY --from=frontend /statping-react/build/ ./react/build/