From 3f776f9bf7094213b5e66b0a3ef6627333301c96 Mon Sep 17 00:00:00 2001 From: Cameron Steele Date: Wed, 6 Dec 2023 15:23:11 -0600 Subject: [PATCH] Use Balena CLI --- .github/workflows/docker-publish.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 5f27785..3c4884c 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -81,11 +81,19 @@ jobs: # # This step uses the identity token to provision an ephemeral certificate # # against the sigstore community Fulcio instance. # run: echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign {}@${{ steps.build-and-push.outputs.digest }} - - name: Deploy to Balena - uses: balena-io/deploy-to-balena-action@master - id: build + # - name: Deploy to Balena + # uses: balena-io/deploy-to-balena-action@master + # id: build + # with: + # balena_token: ${{ secrets.BALENA_TOKEN }} + # fleet: ${{ secrets.BALENA_FLEET }} + - name: Balena Deploy + uses: Theia-Scientific/balena-cli@latest + if: success() with: - balena_token: ${{ secrets.BALENA_TOKEN }} - fleet: ${{ secrets.BALENA_FLEET }} + balena_api_token: ${{secrets.BALENA_TOKEN}} + balena_command: "push ${{secrets.BALENA_FLEET}} --logs" + balena_url: balena-staging.com + - name: Log release ID built run: echo "Built release ID ${{ steps.build.outputs.release_id }}"