mirror of https://github.com/statping/statping
feat: testing workflow
parent
127a7dbb87
commit
7169920e9b
|
@ -60,7 +60,9 @@ jobs:
|
||||||
tags: razorpay/statping:service_${{ github.sha }}
|
tags: razorpay/statping:service_${{ github.sha }}
|
||||||
push: true
|
push: true
|
||||||
file: ./Dockerfile
|
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-from: type=local,src=/tmp/.buildx-cache
|
||||||
cache-to: type=local,dest=/tmp/.buildx-cache
|
cache-to: type=local,dest=/tmp/.buildx-cache
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -14,6 +14,7 @@ RUN yarn build && yarn cache clean
|
||||||
WORKDIR /statping-react
|
WORKDIR /statping-react
|
||||||
COPY ./react-frontend/package.json .
|
COPY ./react-frontend/package.json .
|
||||||
COPY ./react-frontend/yarn.lock .
|
COPY ./react-frontend/yarn.lock .
|
||||||
|
COPY ./react-frontend/.npmrc .
|
||||||
RUN yarn install --pure-lockfile --network-timeout 1000000
|
RUN yarn install --pure-lockfile --network-timeout 1000000
|
||||||
COPY ./react-frontend/ .
|
COPY ./react-frontend/ .
|
||||||
RUN yarn build && yarn cache clean
|
RUN yarn build && yarn cache clean
|
||||||
|
@ -42,9 +43,9 @@ ENV GO111MODULE on
|
||||||
ENV CGO_ENABLED 1
|
ENV CGO_ENABLED 1
|
||||||
RUN go get github.com/stretchr/testify/assert && \
|
RUN go get github.com/stretchr/testify/assert && \
|
||||||
go get github.com/stretchr/testify/require && \
|
go get github.com/stretchr/testify/require && \
|
||||||
go get github.com/GeertJohan/go.rice/rice && \
|
go get github.com/GeertJohan/go.rice/rice && \
|
||||||
go get github.com/cortesi/modd/cmd/modd && \
|
go get github.com/cortesi/modd/cmd/modd && \
|
||||||
go get github.com/crazy-max/xgo
|
go get github.com/crazy-max/xgo
|
||||||
COPY . .
|
COPY . .
|
||||||
COPY --from=frontend /statping/dist/ ./source/dist/
|
COPY --from=frontend /statping/dist/ ./source/dist/
|
||||||
COPY --from=frontend /statping-react/build/ ./react/build/
|
COPY --from=frontend /statping-react/build/ ./react/build/
|
||||||
|
|
Loading…
Reference in New Issue