Balena Preload on Github Actions

Hi there,
The Docker in Docker is currently not supported in Github Actions but I successfully preloaded an image in Github action by running “manual commands” (not in docker containers actions).
Here is an example of job

  balena-preload-raspberrypi3-64:
    runs-on: ubuntu-latest
    needs: cancel-previous
    steps:
      - name: Checkout
        uses: actions/checkout@v2.3.4

      - name: Setup NodeJS
        uses: actions/setup-node@v2
        with:
          node-version: 12.22.5

      - name: Install latest balena-cli
        run: npm install -g balena-cli

      - name: Login
        run: balena login --token ${{ secrets.BALENA_API_TOKEN }}

      - name: Download image
        run: balena os download raspberrypi3-64 --output raspberrypi3-64.img --version default

      - name: Preload image
        run: balena preload raspberrypi3-64.img --app <YOUR_APP_NAME> --commit latest

      - name: Zip image
        run: zip raspberrypi3-64.img.zip raspberrypi3-64.img
1 Like