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:
Thomas Moerkerken
2022-07-07 01:10:35 +02:00
committed by GitHub
parent 449968bc4e
commit 99d16a37d5
3 changed files with 11 additions and 6 deletions

View File

@@ -7,8 +7,8 @@ on:
branches: branches:
- master - master
paths: paths:
- backend - 'backend/**'
- libs - 'libs/**'
jobs: jobs:
libs: libs:

View File

@@ -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

View File

@@ -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"