Drone plugins > Melange
chainguard.svg

Melange

by kameshsampath


Plugin to build apk from source code. Learn more about melange at https://github.com/chainguard-dev/melange.

Example

kind: pipeline
type: docker
name: default

steps:
- name: default
  image: kameshsampath/melange-drone-plugin:latest
  pull: if-not-exists
  privileged: true
  settings:
    config_file: go-hello-world.yaml
    archs:
      - amd64
      - arm64

Properties

  • config_file

    stringrequired

    The melange configuration YAML file, a path relative to drone pipeline. https://github.com/chainguard-dev/melange/blob/main/docs/BUILD-PROCESS.md#melangeyaml

    Default: none

  • output_dir

    stringoptional

    The directory where the built packages will be saved

    Default: $DRONE_WORKSPACE/packages

  • archs

    arrayoptional

    `386`,`amd64`,`arm64`,`arm/v6`,`arm/v7`,`ppc64le`,`riscv64`,`s390x`

    Default: $(uname -m)

  • signing_key

    stringoptional

    The signing key that will be used to sign the package. If not provided it will be generated and set to `melange.rsa`

    Default: melange.rsa

  • env_file

    stringoptional

    The environment file that will be preloaded and made available to build environment

    Default: none