Try multi-arch builds with jsonnet #1

Closed
opened 2022-08-10 09:44:41 +00:00 by jjkiers · 1 comment
Owner

Instead of having to specify the build configuration separately for each target, it would help if it is configured automatically based on input parameters.

According to the Drone documentation, this should be possibly by using Jsonnet. See an example in the Drone docs.

Setup

To use Jsonnect, it must be enabled on the server, by setting the DRONE_JSONNET_ENABLED=1 environment variable.

Usage

It is not entirely clear, but it looks like instead of building a .drone.yml file, a .drone.jsonnet file is required.

This needs some experimentation.

Instead of having to specify the build configuration separately for each target, it would help if it is configured automatically based on input parameters. According to the [Drone documentation](https://docs.drone.io/pipeline/docker/examples/languages/rust/#test-multiple-versions), this should be possibly by using [Jsonnet](https://jsonnet.org/). See an [example](https://docs.drone.io/pipeline/scripting/jsonnet/) in the Drone docs. ## Setup To use Jsonnect, it must be [enabled on the server](https://docs.drone.io/server/reference/drone-jsonnet-enabled/), by setting the `DRONE_JSONNET_ENABLED=1` environment variable. ## Usage It is not entirely clear, but it looks like instead of building a `.drone.yml` file, a `.drone.jsonnet` file is required. This needs some experimentation.
Author
Owner

This is closed now.

This is closed now.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: jjkiers/drone-test#1
No description provided.