-
-
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.
feat: upload docker-compose.yml to release and artifacts and fix typo…
… in actions - upload docker-compose.yml to release and artifacts - fix typo in actions Supersedes: #700 Relates-to: #693
- Loading branch information
Showing
8 changed files
with
156 additions
and
12 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 |
---|---|---|
|
@@ -30,6 +30,8 @@ jobs: | |
LATEST_GA=$FIRMWARE_VERSION | ||
GITHUB_BRANCH=$( echo "${{ github.ref }}" | sed 's/refs\/heads\///g' ) | ||
echo "timestamp=$(date +'%s')" >> $GITHUB_ENV | ||
echo "day=$(date +'%F')" >> $GITHUB_ENV | ||
echo "LATEST_GA=$LATEST_GA" >> $GITHUB_ENV | ||
echo "GITHUB_BRANCH=$GITHUB_BRANCH" >> $GITHUB_ENV | ||
|
@@ -47,12 +49,28 @@ jobs: | |
python gen_docker_compose_by_variant.py ${{matrix.variant}} -o docker-compose.yml | ||
- name: Balena Deploy | ||
uses: nebraltd/[email protected].1 | ||
uses: nebraltd/[email protected].2 | ||
with: | ||
balena_api_token: ${{secrets.NEBRAOS_CLOUD_TOKEN}} | ||
nebraos_cloud: true | ||
balena_command: "deploy nebraltd/${{ env.REPO}} --debug --nocache --build --draft" | ||
balena_command: "deploy nebraltd/${{ env.REPO }} --debug --nocache --build --draft" | ||
|
||
- name: Upload docker-compose.yml artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: docker-compose.yml.${{ env.REPO }} | ||
path: docker-compose.yml | ||
|
||
- name: Upload docker-compose.yml to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: docker-compose.yml | ||
asset_name: docker-compose.yml.${{ env.REPO }} | ||
tag: ${{ env.LATEST_GA }}-${{ env.day }} | ||
overwrite: true | ||
body: "This is helium-miner-software release ${{ env.LATEST_GA }}-${{ env.day }}" | ||
|
||
- name: Trigger build action in ${{ env.REPO }} repo | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
|
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 |
---|---|---|
|
@@ -33,6 +33,8 @@ jobs: | |
LATEST_GA=$FIRMWARE_VERSION | ||
GITHUB_BRANCH=$( echo "${{ github.ref }}" | sed 's/refs\/heads\///g' ) | ||
echo "timestamp=$(date +'%s')" >> $GITHUB_ENV | ||
echo "day=$(date +'%F')" >> $GITHUB_ENV | ||
echo "LATEST_GA=$LATEST_GA" >> $GITHUB_ENV | ||
echo "GITHUB_BRANCH=$GITHUB_BRANCH" >> $GITHUB_ENV | ||
|
@@ -50,12 +52,28 @@ jobs: | |
python gen_docker_compose_by_variant.py ${{matrix.variant}} -o docker-compose.yml | ||
- name: Balena Deploy | ||
uses: nebraltd/[email protected].1 | ||
uses: nebraltd/[email protected].2 | ||
with: | ||
balena_api_token: ${{secrets.NEBRAOS_CLOUD_TOKEN}} | ||
nebraos_cloud: true | ||
balena_command: "deploy nebraltd/${{ env.REPO}} --debug --nocache --build" | ||
balena_command: "deploy nebraltd/${{ env.REPO }} --debug --nocache --build" | ||
|
||
- name: Upload docker-compose.yml artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: docker-compose.yml.${{ env.REPO }} | ||
path: docker-compose.yml | ||
|
||
- name: Upload docker-compose.yml to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: docker-compose.yml | ||
asset_name: docker-compose.yml.${{ env.REPO }} | ||
tag: ${{ env.LATEST_GA }}-${{ env.day }} | ||
overwrite: true | ||
body: "This is helium-miner-software release ${{ env.LATEST_GA }}-${{ env.day }}" | ||
|
||
- name: Trigger build action in ${{ env.REPO }} repo | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
|
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 |
---|---|---|
|
@@ -94,6 +94,8 @@ jobs: | |
LATEST_GA=$FIRMWARE_VERSION | ||
GITHUB_BRANCH=$( echo "${{ github.ref }}" | sed 's/refs\/heads\///g' ) | ||
echo "timestamp=$(date +'%s')" >> $GITHUB_ENV | ||
echo "day=$(date +'%F')" >> $GITHUB_ENV | ||
echo "LATEST_GA=$LATEST_GA" >> $GITHUB_ENV | ||
echo "GITHUB_BRANCH=$GITHUB_BRANCH" >> $GITHUB_ENV | ||
|
@@ -138,12 +140,28 @@ jobs: | |
python gen_docker_compose_by_variant.py "$variant" -o docker-compose.yml | ||
- name: Balena Deploy | ||
uses: nebraltd/[email protected].1 | ||
uses: nebraltd/[email protected].2 | ||
with: | ||
balena_api_token: ${{secrets.NEBRAOS_CLOUD_TOKEN}} | ||
nebraos_cloud: true | ||
balena_command: "deploy nebraltd/${{ env.REPO }} --debug --nocache --build --draft" | ||
|
||
- name: Upload docker-compose.yml artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: docker-compose.yml.${{ env.REPO }} | ||
path: docker-compose.yml | ||
|
||
- name: Upload docker-compose.yml to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: docker-compose.yml | ||
asset_name: docker-compose.yml.${{ env.REPO }} | ||
tag: ${{ env.LATEST_GA }}-${{ env.day }} | ||
overwrite: true | ||
body: "This is helium-miner-software release ${{ env.LATEST_GA }}-${{ env.day }}" | ||
|
||
- name: Trigger build action in ${{ env.REPO }} repo | ||
uses: peter-evans/repository-dispatch@v2 | ||
if: matrix.sbc != 'raspi' && matrix.sbc != 'rockpi' | ||
|
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 |
---|---|---|
|
@@ -97,6 +97,8 @@ jobs: | |
LATEST_GA=$FIRMWARE_VERSION | ||
GITHUB_BRANCH=$( echo "${{ github.ref }}" | sed 's/refs\/heads\///g' ) | ||
echo "timestamp=$(date +'%s')" >> $GITHUB_ENV | ||
echo "day=$(date +'%F')" >> $GITHUB_ENV | ||
echo "LATEST_GA=$LATEST_GA" >> $GITHUB_ENV | ||
echo "GITHUB_BRANCH=$GITHUB_BRANCH" >> $GITHUB_ENV | ||
|
@@ -141,11 +143,27 @@ jobs: | |
python gen_docker_compose_by_variant.py "$variant" -o docker-compose.yml | ||
- name: Balena Deploy | ||
uses: nebraltd/[email protected].1 | ||
uses: nebraltd/[email protected].2 | ||
with: | ||
balena_api_token: ${{secrets.NEBRAOS_CLOUD_TOKEN}} | ||
nebraos_cloud: true | ||
balena_command: "deploy nebraltd/${{ env.REPO }} --debug --nocache --build" | ||
|
||
- name: Upload docker-compose.yml artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: docker-compose.yml.${{ env.REPO }} | ||
path: docker-compose.yml | ||
|
||
- name: Upload docker-compose.yml to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: docker-compose.yml | ||
asset_name: docker-compose.yml.${{ env.REPO }} | ||
tag: ${{ env.LATEST_GA }}-${{ env.day }} | ||
overwrite: true | ||
body: "This is helium-miner-software release ${{ env.LATEST_GA }}-${{ env.day }}" | ||
|
||
- name: Trigger build action in ${{ env.REPO }} repo | ||
uses: peter-evans/repository-dispatch@v2 | ||
|
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 |
---|---|---|
|
@@ -27,6 +27,8 @@ jobs: | |
LATEST_GA=$FIRMWARE_VERSION | ||
GITHUB_BRANCH=$( echo "${{ github.ref }}" | sed 's/refs\/heads\///g' ) | ||
echo "timestamp=$(date +'%s')" >> $GITHUB_ENV | ||
echo "day=$(date +'%F')" >> $GITHUB_ENV | ||
echo "LATEST_GA=$LATEST_GA" >> $GITHUB_ENV | ||
echo "GITHUB_BRANCH=$GITHUB_BRANCH" >> $GITHUB_ENV | ||
|
@@ -44,12 +46,28 @@ jobs: | |
python gen_docker_compose_by_variant.py ${{matrix.variant}} -o docker-compose.yml | ||
- name: Balena Deploy | ||
uses: nebraltd/[email protected].1 | ||
uses: nebraltd/[email protected].2 | ||
with: | ||
balena_api_token: ${{secrets.NEBRAOS_CLOUD_TOKEN}} | ||
nebraos_cloud: true | ||
balena_command: "deploy nebraltd/testnet-${{ env.REPO}} --debug --nocache --build --draft" | ||
balena_command: "deploy nebraltd/testnet-${{ env.REPO }} --debug --nocache --build --draft" | ||
|
||
- name: Upload docker-compose.yml artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: docker-compose.yml.${{ env.REPO }} | ||
path: docker-compose.yml | ||
|
||
- name: Upload docker-compose.yml to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: docker-compose.yml | ||
asset_name: docker-compose.yml.${{ env.REPO }} | ||
tag: ${{ env.LATEST_GA }}-${{ env.day }} | ||
overwrite: true | ||
body: "This is helium-miner-software release ${{ env.LATEST_GA }}-${{ env.day }}" | ||
|
||
- name: Trigger build action in ${{ env.REPO }} repo | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
|
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 |
---|---|---|
|
@@ -30,6 +30,8 @@ jobs: | |
LATEST_GA=$FIRMWARE_VERSION | ||
GITHUB_BRANCH=$( echo "${{ github.ref }}" | sed 's/refs\/heads\///g' ) | ||
echo "timestamp=$(date +'%s')" >> $GITHUB_ENV | ||
echo "day=$(date +'%F')" >> $GITHUB_ENV | ||
echo "LATEST_GA=$LATEST_GA" >> $GITHUB_ENV | ||
echo "GITHUB_BRANCH=$GITHUB_BRANCH" >> $GITHUB_ENV | ||
|
@@ -47,12 +49,28 @@ jobs: | |
python gen_docker_compose_by_variant.py ${{matrix.variant}} -o docker-compose.yml | ||
- name: Balena Deploy | ||
uses: nebraltd/[email protected].1 | ||
uses: nebraltd/[email protected].2 | ||
with: | ||
balena_api_token: ${{secrets.NEBRAOS_CLOUD_TOKEN}} | ||
nebraos_cloud: true | ||
balena_command: "deploy nebraltd/testnet-${{ env.REPO}} --debug --nocache --build" | ||
balena_command: "deploy nebraltd/testnet-${{ env.REPO }} --debug --nocache --build" | ||
|
||
- name: Upload docker-compose.yml artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: docker-compose.yml.${{ env.REPO }}.testnet | ||
path: docker-compose.yml | ||
|
||
- name: Upload docker-compose.yml to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: docker-compose.yml | ||
asset_name: docker-compose.yml.${{ env.REPO }} | ||
tag: TESTNET-${{ env.LATEST_GA }}-${{ env.day }} | ||
overwrite: true | ||
body: "TESTNET: This is helium-miner-software release TESTNET-${{ env.LATEST_GA }}-${{ env.day }}" | ||
|
||
- name: Trigger build action in ${{ env.REPO }} repo | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
|
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 |
---|---|---|
|
@@ -27,6 +27,8 @@ jobs: | |
LATEST_GA=$FIRMWARE_VERSION | ||
GITHUB_BRANCH=$( echo "${{ github.ref }}" | sed 's/refs\/heads\///g' ) | ||
echo "timestamp=$(date +'%s')" >> $GITHUB_ENV | ||
echo "day=$(date +'%F')" >> $GITHUB_ENV | ||
echo "LATEST_GA=$LATEST_GA" >> $GITHUB_ENV | ||
echo "GITHUB_BRANCH=$GITHUB_BRANCH" >> $GITHUB_ENV | ||
|
@@ -66,12 +68,28 @@ jobs: | |
python gen_docker_compose_by_variant.py "$variant" -o docker-compose.yml | ||
- name: Balena Deploy | ||
uses: nebraltd/[email protected].1 | ||
uses: nebraltd/[email protected].2 | ||
with: | ||
balena_api_token: ${{secrets.NEBRAOS_CLOUD_TOKEN}} | ||
nebraos_cloud: true | ||
balena_command: "deploy nebraltd/${{ env.FLEET }} --debug --nocache --build --draft" | ||
|
||
- name: Upload docker-compose.yml artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: docker-compose.yml.${{ env.REPO }}.testnet | ||
path: docker-compose.yml | ||
|
||
- name: Upload docker-compose.yml to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: docker-compose.yml | ||
asset_name: docker-compose.yml.${{ env.REPO }} | ||
tag: TESTNET-${{ env.LATEST_GA }}-${{ env.day }} | ||
overwrite: true | ||
body: "TESTNET: This is helium-miner-software release TESTNET-${{ env.LATEST_GA }}-${{ env.day }}" | ||
|
||
- name: Trigger build action in ${{ env.REPO }} repo | ||
uses: peter-evans/repository-dispatch@v2 | ||
if: matrix.sbc != 'raspi' && matrix.sbc != 'rockpi' | ||
|
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 |
---|---|---|
|
@@ -30,6 +30,8 @@ jobs: | |
LATEST_GA=$FIRMWARE_VERSION | ||
GITHUB_BRANCH=$( echo "${{ github.ref }}" | sed 's/refs\/heads\///g' ) | ||
echo "timestamp=$(date +'%s')" >> $GITHUB_ENV | ||
echo "day=$(date +'%F')" >> $GITHUB_ENV | ||
echo "LATEST_GA=$LATEST_GA" >> $GITHUB_ENV | ||
echo "GITHUB_BRANCH=$GITHUB_BRANCH" >> $GITHUB_ENV | ||
|
@@ -69,12 +71,28 @@ jobs: | |
python gen_docker_compose_by_variant.py "$variant" -o docker-compose.yml | ||
- name: Balena Deploy | ||
uses: nebraltd/[email protected].1 | ||
uses: nebraltd/[email protected].2 | ||
with: | ||
balena_api_token: ${{secrets.NEBRAOS_CLOUD_TOKEN}} | ||
nebraos_cloud: true | ||
balena_command: "deploy nebraltd/${{ env.FLEET }} --debug --nocache --build" | ||
|
||
- name: Upload docker-compose.yml artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: docker-compose.yml.${{ env.REPO }}.testnet | ||
path: docker-compose.yml | ||
|
||
- name: Upload docker-compose.yml to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: docker-compose.yml | ||
asset_name: docker-compose.yml.${{ env.REPO }} | ||
tag: TESTNET-${{ env.LATEST_GA }}-${{ env.day }} | ||
overwrite: true | ||
body: "TESTNET: This is helium-miner-software release TESTNET-${{ env.LATEST_GA }}-${{ env.day }}" | ||
|
||
- name: Trigger build action in ${{ env.REPO }} repo | ||
uses: peter-evans/repository-dispatch@v2 | ||
if: matrix.sbc != 'raspi' && matrix.sbc != 'rockpi' | ||
|