Skip to content

Commit

Permalink
Pins version
Browse files Browse the repository at this point in the history
  • Loading branch information
vpetersson committed Jul 21, 2021
1 parent 20456a0 commit f63b3eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 && \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit f63b3eb

Please sign in to comment.