Răsfoiți Sursa

Remove unnecessary execution of `yarn build:production`

Mark Monteiro 5 ani în urmă
părinte
comite
887e9c2020
5 a modificat fișierele cu 5 adăugiri și 8 ștergeri
  1. 1 1
      .ci/azure-pipelines-main.yml
  2. 1 1
      .ci/azure-pipelines-windows.yml
  3. 1 2
      Dockerfile
  4. 1 2
      Dockerfile.arm
  5. 1 2
      Dockerfile.arm64

+ 1 - 1
.ci/azure-pipelines-main.yml

@@ -43,7 +43,7 @@ jobs:
         displayName: "Build Web Client"
         displayName: "Build Web Client"
         condition: and(succeeded(), or(contains(variables['System.PullRequest.TargetBranch'], 'release'), contains(variables['System.PullRequest.TargetBranch'], 'master'), contains(variables['Build.SourceBranch'], 'release'), contains(variables['Build.SourceBranch'], 'master')), eq(variables['BuildConfiguration'], 'Release'), in(variables['Build.Reason'], 'PullRequest', 'IndividualCI', 'BatchedCI', 'BuildCompletion'))
         condition: and(succeeded(), or(contains(variables['System.PullRequest.TargetBranch'], 'release'), contains(variables['System.PullRequest.TargetBranch'], 'master'), contains(variables['Build.SourceBranch'], 'release'), contains(variables['Build.SourceBranch'], 'master')), eq(variables['BuildConfiguration'], 'Release'), in(variables['Build.Reason'], 'PullRequest', 'IndividualCI', 'BatchedCI', 'BuildCompletion'))
         inputs:
         inputs:
-          script: yarn install && yarn build:production
+          script: yarn install
           workingDirectory: $(Agent.TempDirectory)/jellyfin-web
           workingDirectory: $(Agent.TempDirectory)/jellyfin-web
 
 
       - task: CopyFiles@2
       - task: CopyFiles@2

+ 1 - 1
.ci/azure-pipelines-windows.yml

@@ -36,7 +36,7 @@ jobs:
         displayName: "Build Web Client"
         displayName: "Build Web Client"
         condition: and(succeeded(), or(contains(variables['System.PullRequest.TargetBranch'], 'release'), contains(variables['System.PullRequest.TargetBranch'], 'master'), contains(variables['Build.SourceBranch'], 'release'), contains(variables['Build.SourceBranch'], 'master')), in(variables['Build.Reason'], 'PullRequest', 'IndividualCI', 'BatchedCI', 'BuildCompletion'))
         condition: and(succeeded(), or(contains(variables['System.PullRequest.TargetBranch'], 'release'), contains(variables['System.PullRequest.TargetBranch'], 'master'), contains(variables['Build.SourceBranch'], 'release'), contains(variables['Build.SourceBranch'], 'master')), in(variables['Build.Reason'], 'PullRequest', 'IndividualCI', 'BatchedCI', 'BuildCompletion'))
         inputs:
         inputs:
-          script: yarn install && yarn build:production
+          script: yarn install
           workingDirectory: $(Agent.TempDirectory)/jellyfin-web
           workingDirectory: $(Agent.TempDirectory)/jellyfin-web
 
 
       - task: CopyFiles@2
       - task: CopyFiles@2

+ 1 - 2
Dockerfile

@@ -6,8 +6,7 @@ ARG JELLYFIN_WEB_VERSION=master
 RUN apk add curl git \
 RUN apk add curl git \
  && curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \
  && curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \
  && cd jellyfin-web-* \
  && cd jellyfin-web-* \
- && yarn install \
- && yarn build:production \
+ && yarn install
  && mv dist /dist
  && mv dist /dist
 
 
 FROM mcr.microsoft.com/dotnet/core/sdk:${DOTNET_VERSION}-buster as builder
 FROM mcr.microsoft.com/dotnet/core/sdk:${DOTNET_VERSION}-buster as builder

+ 1 - 2
Dockerfile.arm

@@ -10,8 +10,7 @@ ARG JELLYFIN_WEB_VERSION=master
 RUN apk add curl git \
 RUN apk add curl git \
  && curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \
  && curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \
  && cd jellyfin-web-* \
  && cd jellyfin-web-* \
- && yarn install \
- && yarn build:production \
+ && yarn install
  && mv dist /dist
  && mv dist /dist
 
 
 
 

+ 1 - 2
Dockerfile.arm64

@@ -10,8 +10,7 @@ ARG JELLYFIN_WEB_VERSION=master
 RUN apk add curl git \
 RUN apk add curl git \
  && curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \
  && curl -L https://github.com/jellyfin/jellyfin-web/archive/${JELLYFIN_WEB_VERSION}.tar.gz | tar zxf - \
  && cd jellyfin-web-* \
  && cd jellyfin-web-* \
- && yarn install \
- && yarn build:production \
+ && yarn install
  && mv dist /dist
  && mv dist /dist