Sign inSign up

joseluisq/drone-archive

By joseluisq

•Updated almost 6 years ago

Drone plugin that provides Tar/Gzip and Zip archiving with optional checksum computation.

Image
0

1.9K

joseluisq/drone-archive repository overview

⁠Drone Archive Plugin

Build Status codecov Go Report Card PkgGoDev Docker Image Version (tag latest semver) Docker Image Size (tag) Docker Image

Drone⁠ plugin that provides Tar/Gzip and Zip archiving with optional checksum computation.

⁠Usage

---
kind: pipeline
type: docker
name: production

platform:
  os: linux
  arch: amd64

steps:
- name: archive
  image: joseluisq/drone-archive
  settings:
    format: tar
    src: ./release/myprogram
    dest: ./myprogram.tar.gz
    checksum: true
    checksum_algo: sha256
    checksum_dest: myprogram.CHECKSUM.tar.gz.txt

⁠API

$ drone-archive --help
# NAME: archive plugin [OPTIONS] COMMAND
#
# Archive a file or directory using Tar/GZ or Zip with optional checksum computation.
#
# OPTIONS:
#   -s --src              File or directory to archive and compress. [env: PLUGIN_SRC]
#   -d --dest             File destination path to save the archived/compressed file. [env: PLUGIN_DEST]
#   -f --format           Define a `tar` and `zip` archiving format with compression. Tar format uses Gzip compression. [default: tar] [env: PLUGIN_FORMAT]
#   -c --checksum         Enable checksum file computation. [default: false] [env: PLUGIN_CHECKSUM]
#   -a --checksum-algo    Define the checksum `md5`, `sha1`, `sha256` or `sha512` algorithm. [default: sha256] [env: PLUGIN_CHECKSUM_ALGO]
#   -e --checksum-dest    File destination path of the checksum. [env: PLUGIN_CHECKSUM_DEST]
#   -h --help             Prints help information
#   -v --version          Prints version information

⁠Contributions

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in current work by you, as defined in the Apache-2.0 license, shall be dual licensed as described below, without any additional terms or conditions.

Feel free to send some Pull request⁠ or issue⁠.

⁠License

This work is primarily distributed under the terms of both the MIT license⁠ and the Apache License (Version 2.0)⁠.

© 2020-present Jose Quintana⁠

Tag summary

Content type

Image

Digest

Size

3.5 MB

Last updated

almost 6 years ago

docker pull joseluisq/drone-archive