mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
Fix/adjust pipeline (#1619)
* use the correct frontend make target * allow interactive tty if available * fix syntax on pipeline trigger paths
This commit is contained in:
committed by
GitHub
parent
449968bc4e
commit
99d16a37d5
4
.github/workflows/backend-pr.yaml
vendored
4
.github/workflows/backend-pr.yaml
vendored
@@ -7,8 +7,8 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
paths:
|
paths:
|
||||||
- backend
|
- 'backend/**'
|
||||||
- libs
|
- 'libs/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
libs:
|
libs:
|
||||||
|
|||||||
6
.github/workflows/frontend-pr.yaml
vendored
6
.github/workflows/frontend-pr.yaml
vendored
@@ -7,7 +7,7 @@ on:
|
|||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
paths:
|
paths:
|
||||||
- frontend
|
- 'frontend/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
frontend:
|
frontend:
|
||||||
@@ -34,8 +34,8 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-node-
|
${{ runner.os }}-node-
|
||||||
|
|
||||||
- name: Build frontend
|
- name: Build frontends
|
||||||
run: make frontend
|
run: make frontends
|
||||||
|
|
||||||
- name: 'Tar files to preserve file permissions'
|
- name: 'Tar files to preserve file permissions'
|
||||||
run: tar -cvf frontend.tar frontend/dist frontend/config.json
|
run: tar -cvf frontend.tar frontend/dist frontend/config.json
|
||||||
|
|||||||
@@ -8,9 +8,14 @@ if [ "$0" != "./build-arm-v8-snapshot.sh" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
USE_TTY=
|
||||||
|
if tty -s; then
|
||||||
|
USE_TTY="-it"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Building "
|
echo "Building "
|
||||||
cd ..
|
cd ..
|
||||||
docker run --rm -it -v "$HOME/.cargo/registry":/root/.cargo/registry -v "$(pwd)":/home/rust/src start9/rust-arm-cross:aarch64 sh -c "(cd libs/ && cargo build -p snapshot-creator --release )"
|
docker run --rm $USE_TTY -v "$HOME/.cargo/registry":/root/.cargo/registry -v "$(pwd)":/home/rust/src start9/rust-arm-cross:aarch64 sh -c "(cd libs/ && cargo build -p snapshot-creator --release )"
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
echo "Creating Arm v8 Snapshot"
|
echo "Creating Arm v8 Snapshot"
|
||||||
|
|||||||
Reference in New Issue
Block a user