Skip to content

Commit

Permalink
ci(inspector): Fixed a misconfigured path
Browse files Browse the repository at this point in the history
  • Loading branch information
isala404 committed Mar 23, 2022
1 parent 944aa13 commit 0333c60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-inspector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ jobs:
defaults:
run:
shell: bash
working-directory: control-plane
steps:
- uses: actions/checkout@v2
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: docker build -t $IMAGE_NAME:latest .
- run: docker build -t $IMAGE_NAME:latest -f inspector/Dockerfile .
- run: docker tag $IMAGE_NAME:latest $IMAGE_NAME:commit-${GITHUB_SHA:0:8}
- run: docker push $IMAGE_NAME --all-tags
12 changes: 1 addition & 11 deletions inspector/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,18 @@ FROM node as ui-build

WORKDIR /workspace

COPY ui/package.json ./
COPY ui/package-lock.json ./
RUN npm install --silent

COPY ui/ .
RUN npm install --silent

RUN npm run build


FROM golang:1.17 as go-builder

WORKDIR /workspace
# Copy the Go Modules manifests
COPY ./inspector/go.mod go.mod
COPY ./inspector/go.sum go.sum
# cache deps before building and copying source so that we don't need to re-download as much
# and so that source changes don't invalidate our downloaded layer
RUN go mod download

COPY ./inspector/ ./


# Copy UI build
COPY --from=ui-build /workspace/dist/ ui/

Expand Down

0 comments on commit 0333c60

Please sign in to comment.