-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #264 from NebraLtd/shawaj/rockpiagain
fix: revert privileged containers and add rockpi builds
- Loading branch information
Showing
3 changed files
with
34 additions
and
72 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 |
---|---|---|
|
@@ -7,85 +7,36 @@ on: | |
- production | ||
|
||
jobs: | ||
outdoor-868: | ||
build-prod: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
sbc: [raspi, rockpi] | ||
frequency: [470, 868, 915] | ||
variant: [indoor, outdoor] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Change i2c bus for RockPi | ||
if: matrix.sbc == 'rockpi' | ||
run: | | ||
sed -i -E "s/\/dev\/i2c-1:\/dev\/i2c-1/\/dev\/i2c-7:\/dev\/i2c-7/g" docker-compose.yml | ||
ROCKPI="-rockpi" | ||
echo "ROCKPI=$ROCKPI" >> $GITHUB_ENV | ||
- name: Balena Deploy | ||
uses: nebraltd/balena-cli-action@v12.51.1 | ||
uses: nebraltd/balena-cli-action@v12.54.5 | ||
if: success() | ||
with: | ||
balena_api_token: ${{secrets.BALENA_API_TOKEN}} | ||
balena_command: "deploy nebraltd/helium-outdoor-868 --logs --debug --nocache --build" | ||
|
||
indoor-868: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Balena Deploy | ||
uses: nebraltd/[email protected] | ||
if: success() | ||
with: | ||
balena_api_token: ${{secrets.BALENA_API_TOKEN}} | ||
balena_command: "deploy nebraltd/helium-indoor-868 --logs --debug --nocache --build" | ||
|
||
outdoor-915: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Balena Deploy | ||
uses: nebraltd/[email protected] | ||
if: success() | ||
with: | ||
balena_api_token: ${{secrets.BALENA_API_TOKEN}} | ||
balena_command: "deploy nebraltd/helium-outdoor-915 --logs --debug --nocache --build" | ||
|
||
indoor-915: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Balena Deploy | ||
uses: nebraltd/[email protected] | ||
if: success() | ||
with: | ||
balena_api_token: ${{secrets.BALENA_API_TOKEN}} | ||
balena_command: "deploy nebraltd/helium-indoor-915 --logs --debug --nocache --build" | ||
|
||
outdoor-470: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Balena Deploy | ||
uses: nebraltd/[email protected] | ||
if: success() | ||
with: | ||
balena_api_token: ${{secrets.BALENA_API_TOKEN}} | ||
balena_command: "deploy nebraltd/helium-outdoor-470 --logs --debug --nocache --build" | ||
|
||
indoor-470: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Balena Deploy | ||
uses: nebraltd/[email protected] | ||
if: success() | ||
with: | ||
balena_api_token: ${{secrets.BALENA_API_TOKEN}} | ||
balena_command: "deploy nebraltd/helium-indoor-470 --logs --debug --nocache --build" | ||
balena_command: "deploy nebraltd/helium-${{ matrix.variant }}-${{ matrix.frequency }}${{ env.ROCKPI }} --logs --debug --nocache --build" | ||
|
||
open-fleet: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Balena Deploy | ||
uses: nebraltd/balena-cli-action@v12.51.1 | ||
uses: nebraltd/balena-cli-action@v12.54.5 | ||
if: success() | ||
with: | ||
balena_api_token: ${{secrets.BALENA_API_TOKEN}} | ||
|
@@ -97,7 +48,7 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Balena Deploy | ||
uses: nebraltd/balena-cli-action@v12.51.1 | ||
uses: nebraltd/balena-cli-action@v12.54.5 | ||
if: success() | ||
with: | ||
balena_api_token: ${{secrets.BALENA_API_TOKEN}} | ||
|
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