Skip to content

Commit

Permalink
ci: build docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
imba28 committed Jul 12, 2022
1 parent 0c89649 commit 7aee661
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,18 @@ jobs:
path: |
tests/e2e/screenshots
tests/e2e/videos
docker-image:
needs: e2e
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Build image
uses: docker/build-push-action@v3
with:
push: false
context: .
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ FROM node:14-alpine as frontend_builder

WORKDIR /build

COPY --from=openapi-generator /local/assets/openapi /build/assets/openapi
COPY --from=openapi-generator /local/assets/openapi/src /build/assets/openapi

COPY package.json .
COPY package-lock.json .
RUN npm remove cypress
RUN npm ci

COPY . .
RUN npm run lint && npm run build
RUN npm run build

# runtime
FROM alpine:3
Expand Down
Empty file removed assets/openapi/.gitkeep
Empty file.

0 comments on commit 7aee661

Please sign in to comment.