A Drone CI plugin for publishing Lua modules to LuaRocks
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sebastian 870c538c7c
Changed image name to match my docker hub account
4 months ago
Dockerfile Changed image name to match my docker hub account 4 months ago
LICENSE Inital commit 4 months ago
README.md Changed image name to match my docker hub account 4 months ago
lr_upload.sh Inital commit 4 months ago

README.md

drone-luarocks

This is a Drone plugin for uploading a Lua module as a self-contained package, called a rock, to LuaRocks.

Docs

Config

The following parameter are available to configure the plugin:

mandatory

  • rockspec - full path of the .rockspec file
  • apikey - the API key, which is needed for publishing the module at LuaRocks
    • it’s highly recommnd to configure a Secret for this, to not expose it to the world

optional

  • lint - runs luarocks lint before luarocks upload (default: true)
  • skippack - skips packaging and only uploads the .rockspec file (default: false)
  • force - the existing rock is overwritten, if the same version of the rock already exists (default: false)

Examples

kind: pipeline
type: docker
name: default

steps:
- name: upload
  image: imolein/drone-luarocks
  settings:
    rockspec: test_module-0.1-0.rockspec
    apikey:
      from_secret: lr_api_key
  when:
    event:
      include:
        - tag
      exclude:
        - pull_request

Drone Version

  • >1.0 - works
  • 0.8 - not tested