feat: testing workflow

pull/1097/head
smit95tpatel 2022-04-29 13:31:15 +05:30
parent 127a7dbb87
commit 7169920e9b
2 changed files with 7 additions and 4 deletions

View File

@ -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:

View File

@ -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/