{"id":16024846,"url":"https://github.com/joseluisq/drone-archive","last_synced_at":"2025-03-24T10:16:41.960Z","repository":{"id":146282169,"uuid":"316984122","full_name":"joseluisq/drone-archive","owner":"joseluisq","description":"Drone plugin that provides Tar/Gzip and Zip archiving/compression with optional checksum computation.","archived":false,"fork":false,"pushed_at":"2020-12-13T23:52:20.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-23T00:09:52.963Z","etag":null,"topics":["archiving","compression","drone-archive","drone-plugin","gzip","tar","zip"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joseluisq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-11-29T15:40:43.000Z","updated_at":"2020-12-29T20:10:34.000Z","dependencies_parsed_at":"2023-05-07T11:30:44.660Z","dependency_job_id":null,"html_url":"https://github.com/joseluisq/drone-archive","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"2c5a786bfb143475aa2afad647fccb8660e6e06e"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fdrone-archive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fdrone-archive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fdrone-archive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fdrone-archive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joseluisq","download_url":"https://codeload.github.com/joseluisq/drone-archive/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245128825,"owners_count":20565346,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["archiving","compression","drone-archive","drone-plugin","gzip","tar","zip"],"created_at":"2024-10-08T19:40:24.736Z","updated_at":"2025-03-24T10:16:41.933Z","avatar_url":"https://github.com/joseluisq.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Drone Archive Plugin\n\n[![Build Status](https://travis-ci.com/joseluisq/drone-archive.svg?branch=master)](https://travis-ci.com/joseluisq/drone-archive) [![codecov](https://codecov.io/gh/joseluisq/drone-archive/branch/master/graph/badge.svg)](https://codecov.io/gh/joseluisq/drone-archive) [![Go Report Card](https://goreportcard.com/badge/github.com/joseluisq/drone-archive)](https://goreportcard.com/report/github.com/joseluisq/drone-archive) [![PkgGoDev](https://pkg.go.dev/badge/github.com/joseluisq/drone-archive)](https://pkg.go.dev/github.com/joseluisq/drone-archive) [![Docker Image Version (tag latest semver)](https://img.shields.io/docker/v/joseluisq/drone-archive/1)](https://hub.docker.com/r/joseluisq/drone-archive/) [![Docker Image Size (tag)](https://img.shields.io/docker/image-size/joseluisq/drone-archive/1)](https://hub.docker.com/r/joseluisq/drone-archive/) [![Docker Image](https://img.shields.io/docker/pulls/joseluisq/drone-archive.svg)](https://hub.docker.com/r/joseluisq/drone-archive/)\n\n\u003e [Drone](https://drone.io/) plugin that provides Tar/Gzip and Zip archiving with optional checksum computation.\n\n## Usage\n\n```yml\n---\nkind: pipeline\ntype: docker\nname: production\n\nplatform:\n  os: linux\n  arch: amd64\n\nsteps:\n- name: archive\n  image: joseluisq/drone-archive\n  settings:\n    format: tar\n    src_base_path: ./my-base-path\n    src: ./release/myprogram\n    dest: ./myprogram.tar.gz\n    checksum: true\n    checksum_algo: sha256\n    checksum_dest: myprogram.CHECKSUM.tar.gz.txt\n```\n\n## API\n\n```sh\n$ drone-archive --help\n# NAME: archive plugin [OPTIONS] COMMAND\n#\n# Archive a file or directory using Tar/Gzip or Zip with optional checksum computation.\n#\n# OPTIONS:\n#   -b --src-base-path    Source base path directory which will be skipped for each archive file header. [env: PLUGIN_SRC_BASE_PATH]\n#   -s --src              File or directory to archive and compress. [env: PLUGIN_SRC]\n#   -d --dest             File destination path to save the archived/compressed file. [env: PLUGIN_DEST]\n#   -f --format           Define a `tar` and `zip` archiving format with compression. Tar format uses Gzip compression. [default: tar] [env: PLUGIN_FORMAT]\n#   -c --checksum         Enable checksum file computation. [default: false] [env: PLUGIN_CHECKSUM]\n#   -a --checksum-algo    Define the checksum `md5`, `sha1`, `sha256` or `sha512` algorithm. [default: sha256] [env: PLUGIN_CHECKSUM_ALGO]\n#   -e --checksum-dest    File destination path of the checksum. [env: PLUGIN_CHECKSUM_DEST]\n#   -h --help             Prints help information\n#   -v --version          Prints version information\n```\n\n## Development\n\n### Test\n\n```sh\nmake test\n```\n\n### Build\n\nBuild the binaries and Docker image.\n\n```sh\nmake build image.build\n```\n\n### Run\n\nRun Docker images examples.\n\n```sh\nmake image.tar\n# or\nmake image.zip\n```\n\n## Contributions\n\nUnless 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.\n\nFeel free to send some [Pull request](https://github.com/joseluisq/drone-archive/pulls) or [issue](https://github.com/joseluisq/drone-archive/issues).\n\n## License\n\nThis work is primarily distributed under the terms of both the [MIT license](LICENSE-MIT) and the [Apache License (Version 2.0)](LICENSE-APACHE).\n\n© 2020-present [Jose Quintana](https://git.io/joseluisq)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoseluisq%2Fdrone-archive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoseluisq%2Fdrone-archive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoseluisq%2Fdrone-archive/lists"}