Skip to content

Commit

Permalink
feat: upload docker-compose.yml to release and artifacts and fix typo…
Browse files Browse the repository at this point in the history
… in actions

- upload docker-compose.yml to release and artifacts
- fix typo in actions

Supersedes: #700
Relates-to: #693
  • Loading branch information
shawaj committed Apr 4, 2023
1 parent bb147ab commit 9636028
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 12 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/push-to-prod-new-fleets-nebraos-cloud-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
22 changes: 20 additions & 2 deletions .github/workflows/push-to-prod-new-fleets-nebraos-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ 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: Trigger build action in ${{ env.REPO }} repo
uses: peter-evans/repository-dispatch@v2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ 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: Trigger build action in ${{ env.REPO }} repo
uses: peter-evans/repository-dispatch@v2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ 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
Expand Down

0 comments on commit 9636028

Please sign in to comment.