Skip to content
Sample balena push/deploy with Google Container Registry (GCR) private images
Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile
LICENSE
README.md
sample_secrets.yml

README.md

sample-gcr-registry-secrets

Sample registry secrets usage for private base images hosted with the Google Container Registry service.

  • Replace the contents of the password field in the sample_secrets.yml file with the contents of your own keyfile.json file. Note the escaping of line breaks in the sample file. (By the way, the "private key id" and "private key" fields have been modified in that file: they are not real values, just placeholder values.)

  • The 'eu.gcr.io' value must match between the Dockerfile "FROM" line and the key entry in the sample_secrets.yml file.

With those in place, some sample balena CLI commands are:

git clone https://github.com/balena-io-playground/sample-gcr-registry-secrets.git

cd sample-gcr-registry-secrets

DEBUG=1 balena push test-project --registry-secrets sample_secrets.yml

DEBUG=1 balena deploy test-project --build --logs --registry-secrets sample_secrets.yml

DEBUG=1 balena build --deviceType raspberrypi3 --arch armv7hf --logs --registry-secrets sample_secrets.yml

References:

You can’t perform that action at this time.