Wercker step for packaging directories
Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CHANGELOG.md
LICENCE
README.md
run.sh
wercker-step.yml
wercker.yml

README.md

Wercker step zip MIT License

wercker status

This is wercker build step script to package your directories as .zip.

Usage

In the wercker.yml of your application use the following step definition:

steps:
   - tcnksm/zip:
     input: $WERCKER_OUTPUT_DIR/pkg
     output: $WERCKER_OUTPUT_DIR/dist

You must set input directory where directories you want to package are in and output directory where zip archeives will be generated. Both must be set as absolte path ($WERCKER_OUTPUT_PATH is built-in environmental valiable which is used for pass the artifacts between build step and deploy step).

Requirements

If you use wercker-box which is not installed zip, you need additional step:

steps:
    - script:
      name: install zip
      code: |
        sudo apt-get update -y
        sudo apt-get upgrade -y
        sudo apt-get install -y zip
    - tcnksm/zip
        input: "pkg"
        output: "dist"

Author

tcnksm