-
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] Fixed bugs in auto-install script #299
Updated CI to use auto-install script for spawning containers. Closes #299
- Loading branch information
Showing
4 changed files
with
72 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,26 @@ jobs: | |
- name: Build Images | ||
run: make compose-build nfs-build | ||
|
||
- name: Use auto-install script to start containers | ||
# Do not remove the blank lines from the input. | ||
run: | | ||
GIT_BRANCH="${{ github.ref_name }}" SKIP_PULL=true sudo -E ./deploy/auto-install.sh << EOF | ||
edge | ||
dashboard.openwisp.org | ||
api.openwisp.org | ||
vpn.openwisp.org | ||
[email protected] | ||
EOF | ||
- name: Test | ||
run: make runtests || (docker compose logs && exit 1) | ||
# The auto-install script installs docker-openwisp by default in | ||
# /opt/openwisp/docker-openwisp. To ensure the test runs correctly | ||
# and environment variables remain intact, it is essential to | ||
# execute the test from this directory. | ||
run: | | ||
(make develop-pythontests && make stop) || (docker compose logs && exit 1) | ||
working-directory: /opt/openwisp/docker-openwisp | ||
env: | ||
SELENIUM_HEADLESS: 1 |
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