https://github.com/drone-plugins/drone-azure-storage
Drone plugin for publishing files to Azure Storage
https://github.com/drone-plugins/drone-azure-storage
drone drone-plugin
Last synced: 4 months ago
JSON representation
Drone plugin for publishing files to Azure Storage
- Host: GitHub
- URL: https://github.com/drone-plugins/drone-azure-storage
- Owner: drone-plugins
- License: apache-2.0
- Created: 2015-05-16T02:50:44.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2022-12-21T14:53:25.000Z (over 3 years ago)
- Last Synced: 2024-06-19T05:35:28.788Z (almost 2 years ago)
- Topics: drone, drone-plugin
- Language: Go
- Homepage: http://plugins.drone.io/drone-plugins/drone-azure-storage
- Size: 63.5 KB
- Stars: 5
- Watchers: 9
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drone-azure-storage
[](http://cloud.drone.io/drone-plugins/drone-azure-storage)
[](https://gitter.im/drone/drone)
[](https://discourse.drone.io)
[](https://stackoverflow.com/questions/tagged/drone.io)
[](https://microbadger.com/images/plugins/azure-storage "Get your own image badge on microbadger.com")
[](http://godoc.org/github.com/drone-plugins/drone-azure-storage)
[](https://goreportcard.com/report/github.com/drone-plugins/drone-azure-storage)
Drone plugin to publish files and artifacts to Azure Storage. For the usage information and a listing of the available options please take a look at [the docs](http://plugins.drone.io/drone-plugins/drone-azure-storage/).
## Build
Build the binary with the following command:
```console
export GOOS=linux
export GOARCH=amd64
export CGO_ENABLED=0
export GO111MODULE=on
go build -v -a -tags netgo -o release/linux/amd64/drone-azure-storage
```
## Docker
Build the Docker image with the following command:
```console
docker build \
--label org.label-schema.build-date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
--label org.label-schema.vcs-ref=$(git rev-parse --short HEAD) \
--file docker/Dockerfile.linux.amd64 --tag plugins/azure-storage .
```
## Usage
```
docker run --rm \
-e PLUGIN_ACCOUNT=my-storage-account \
-e PLUGIN_ACCOUNT_KEY=123889asd89u8hsfdjh98128hh \
-e PLUGIN_CONTAINER=my-container \
-e PLUGIN_SOURCE=folder/to/upload \
-v $(pwd):$(pwd) \
-w $(pwd) \
plugins/azure-storage
```