commit
ae41980b5b
18
.github/workflows/build-docker.yml
vendored
18
.github/workflows/build-docker.yml
vendored
@ -11,6 +11,12 @@ jobs:
|
|||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@master
|
||||||
|
|
||||||
|
- name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v4
|
||||||
|
with:
|
||||||
|
images: ${{ secrets.DOCKER_USERNAME }}/moviepilot
|
||||||
|
|
||||||
-
|
-
|
||||||
name: Release version
|
name: Release version
|
||||||
id: release_version
|
id: release_version
|
||||||
@ -18,15 +24,16 @@ jobs:
|
|||||||
app_version=$(cat version.py |sed -ne "s/APP_VERSION\s=\s'v\(.*\)'/\1/gp")
|
app_version=$(cat version.py |sed -ne "s/APP_VERSION\s=\s'v\(.*\)'/\1/gp")
|
||||||
echo "app_version=$app_version" >> $GITHUB_ENV
|
echo "app_version=$app_version" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
-
|
||||||
|
name: Setup node
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: '18'
|
||||||
|
|
||||||
-
|
-
|
||||||
name: Build frontend
|
name: Build frontend
|
||||||
id: build_brontend
|
id: build_brontend
|
||||||
run: |
|
run: |
|
||||||
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
|
|
||||||
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
|
|
||||||
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
|
||||||
sudo apt-get update && sudo apt-get install -y nodejs yarn
|
|
||||||
node -v && yarn --version
|
|
||||||
git clone https://github.com/jxxghp/MoviePilot-Frontend
|
git clone https://github.com/jxxghp/MoviePilot-Frontend
|
||||||
cd MoviePilot-Frontend
|
cd MoviePilot-Frontend
|
||||||
yarn && yarn build
|
yarn && yarn build
|
||||||
@ -63,3 +70,4 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
${{ secrets.DOCKER_USERNAME }}/moviepilot:latest
|
${{ secrets.DOCKER_USERNAME }}/moviepilot:latest
|
||||||
${{ secrets.DOCKER_USERNAME }}/moviepilot:${{ env.app_version }}
|
${{ secrets.DOCKER_USERNAME }}/moviepilot:${{ env.app_version }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#user nobody;
|
user root;
|
||||||
worker_processes auto;
|
worker_processes auto;
|
||||||
worker_cpu_affinity auto;
|
worker_cpu_affinity auto;
|
||||||
|
|
||||||
@ -25,6 +25,7 @@ http {
|
|||||||
listen 3000;
|
listen 3000;
|
||||||
server_name moviepilot;
|
server_name moviepilot;
|
||||||
|
|
||||||
|
root /app/public
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
# 主目录
|
# 主目录
|
||||||
|
Loading…
x
Reference in New Issue
Block a user