-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Abort installation if user is not "pi" (#2076)
* check for user 'pi' and home '/home/pi' retrieve correct information even if called with sudo * use correct user in docker and test scripts. docker env USER added. var USER is not exported by default. test installation script now uses current user and home from env. removed duplicate test script for alternative user. * check and handle installation exitcode * harmonize workflow trigger. activated test2 for buster * fix cron schedule. Only run once at 5, not every minute
- Loading branch information
1 parent
a003088
commit 7253971
Showing
19 changed files
with
158 additions
and
542 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,13 @@ name: Test Install Scripts for Bullseye (alternative user) on Docker | |
on: | ||
schedule: | ||
# run at 5 every sunday | ||
- cron: '* 5 * * 0' | ||
- cron: '0 5 * * 0' | ||
push: | ||
branches-ignore: | ||
- 'future3/**' | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ develop ] | ||
|
||
jobs: | ||
|
||
|
@@ -20,7 +26,7 @@ jobs: | |
- name: Set up Docker Buildx | ||
uses: docker/[email protected] | ||
|
||
- name: Build altuser hans Bullseye ARMv7 | ||
- name: Build altuser Bullseye ARMv7 | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
|
@@ -29,37 +35,32 @@ jobs: | |
file: ./ci/Dockerfile.bullseye.test_install_altuser.armv7 | ||
platforms: linux/arm/v7 | ||
tags: rpi-jukebox-rfid-bullseye-altuser:latest | ||
cache-from: type=gha,scope=$GITHUB_REF_NAME-bullseye-hans | ||
cache-to: type=gha,mode=max,scope=$GITHUB_REF_NAME-bullseye-hans | ||
cache-from: type=gha,scope=$GITHUB_REF_NAME-bullseye-altuser | ||
cache-to: type=gha,mode=max,scope=$GITHUB_REF_NAME-bullseye-altuser | ||
|
||
- name: Run run_installation_tests_altuser.sh Bullseye ARMv7 | ||
- name: Run run_installation_tests.sh Bullseye ARMv7 | ||
uses: tj-actions/docker-run@v2 | ||
with: | ||
image: rpi-jukebox-rfid-bullseye-altuser:latest | ||
options: --platform linux/arm/v7 | ||
name: run_installation_tests_altuser.sh | ||
name: run_installation_tests.sh | ||
args: | | ||
/code/scripts/installscripts/tests/run_installation_tests_altuser.sh | ||
/code/scripts/installscripts/tests/run_installation_tests.sh | ||
# - name: Run run_installation_tests2_altuser.sh Bullseye ARMv7 | ||
# uses: tj-actions/docker-run@v2 | ||
# with: | ||
# image: rpi-jukebox-rfid-bullseye-altuser:latest | ||
# options: --platform linux/arm/v7 | ||
# name: run_installation_tests2_altuser.sh | ||
# args: | | ||
# /code/scripts/installscripts/tests/run_installation_tests2_altuser.sh | ||
|
||
- name: Run run_installation_tests3_altuser.sh Bullseye ARMv7 | ||
- name: Run run_installation_tests2.sh Bullseye ARMv7 | ||
uses: tj-actions/docker-run@v2 | ||
with: | ||
image: rpi-jukebox-rfid-bullseye-altuser:latest | ||
options: --platform linux/arm/v7 | ||
name: run_installation_tests3_altuser.sh | ||
name: run_installation_tests2.sh | ||
args: | | ||
/code/scripts/installscripts/tests/run_installation_tests3_altuser.sh | ||
/code/scripts/installscripts/tests/run_installation_tests2.sh | ||
- name: Run run_installation_tests3.sh Bullseye ARMv7 | ||
uses: tj-actions/docker-run@v2 | ||
with: | ||
image: rpi-jukebox-rfid-bullseye-altuser:latest | ||
options: --platform linux/arm/v7 | ||
name: run_installation_tests3.sh | ||
args: | | ||
/code/scripts/installscripts/tests/run_installation_tests3.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.