Skip to content

Commit

Permalink
Update Dockerfile and workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mxdlzg committed Jun 18, 2024
1 parent 1a95e99 commit b7fdec3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-image-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Save version info
run: |
git describe --tags > VERSION && cat VERSION
git describe --tags --always > VERSION && cat VERSION
- name: Log in to Docker Hub
uses: docker/login-action@v2
Expand Down Expand Up @@ -83,8 +83,6 @@ jobs:
uses: docker/setup-buildx-action@v2
with:
driver-opts: network=host
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

- name: Build and push Docker images
uses: docker/build-push-action@v3
Expand All @@ -93,3 +91,5 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ COPY ./web .

WORKDIR /web/default
RUN npm install
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat /web/VERSION) npm run build

WORKDIR /web/berry
RUN npm install
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat /web/VERSION) npm run build

WORKDIR /web/air
RUN npm install
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat /web/VERSION) npm run build

FROM golang AS builder2

Expand Down

0 comments on commit b7fdec3

Please sign in to comment.