Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cedric05/upload-to-azure-blob-storage
https://github.com/cedric05/upload-to-azure-blob-storage
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/cedric05/upload-to-azure-blob-storage
- Owner: cedric05
- Created: 2023-01-13T12:07:28.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-13T17:03:43.000Z (about 2 years ago)
- Last Synced: 2024-10-18T12:17:41.469Z (3 months ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# upload-to-azure-blob-storage
```yaml
on: [push]jobs:
upload-to-azure-blob:
runs-on: ubuntu-latest
name: uploads to azure blob storage container
steps:
- uses: actions/checkout@v3
- id: upload-blob
uses: cedric05/upload-to-azure-blob-storage@v1
with:
source-file: a.out # source file to upload
base-project-path: c++_projects/first-project # az backup directory
target-file: hello-world # az target file name
overwrite: 'true' #optional
container-name: container-name # az storage container name
storage-account-name: storage-account-name # az storage account name
creds: ${{ secrets.AZURE_CREDENTIALS }} # az create rbac output
```## Use with credential
This credentials feature is for sharing same credentials with [azure-login](https://github.com/marketplace/actions/azure-login).
How to create Azure credentials?
-> Please check [azure-login page](https://github.com/marketplace/actions/azure-login#configure-azure-credentials).# Develop
install-azcopy-action is tested below.
- ubuntu-22.04
- ubuntu-20.04(ubuntu-latest)
- ubuntu-18.04[GitHub - Supported runners](https://docs.github.com/en/free-pro-team@latest/actions/reference/specifications-for-github-hosted-runners#supported-runners-and-hardware-resources)
If you need to add another environment, please post a issue.