From f63b3eb46ca940625e1dfb0c4bd7ebc6cb6e97c0 Mon Sep 17 00:00:00 2001 From: Viktor Petersson Date: Wed, 21 Jul 2021 08:58:03 +0100 Subject: [PATCH] Pins version --- Dockerfile | 7 +++++-- README.md | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index dff399f..b99d55c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,16 @@ FROM debian:stable-slim LABEL Description="Use the Balena CLI to perform actions" + +# Get the latest Balena release using +# curl -s https://api.github.com/repos/balena-io/balena-cli/releases/latest | jq -r .tag_name) + # Install the standalone balena-cli package RUN apt-get update && apt-get install -y \ curl \ - jq \ unzip && \ cd /opt/ && \ - export BALENA_RELEASE=$(curl -s https://api.github.com/repos/balena-io/balena-cli/releases/latest | jq -r .tag_name) && \ + export BALENA_RELEASE="v12.44.25" && \ echo "Uses Balena CLI version: $BALENA_RELEASE" && \ curl -O -sSL "https://github.com/balena-io/balena-cli/releases/download/$BALENA_RELEASE/balena-cli-$BALENA_RELEASE-linux-x64-standalone.zip" && \ unzip balena-cli-*-linux-x64-standalone.zip && \ diff --git a/README.md b/README.md index 2065e77..2f04215 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Balena Deploy - uses: nebraltd/balena-cli-action@v1.2 + uses: nebraltd/balena-cli-action@v12.44.25 if: success() with: balena_api_token: ${{secrets.BALENA_API_TOKEN}}