Skip to content

kheiakiyama/install-azcopy-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

install-azcopy-action

install-azcopy-action status release

Usage

Basic

steps:
- uses: actions/checkout@v2
- uses: kheiakiyama/install-azcopy-action@v1
  with:
    version: 'v10'
- run: azcopy_v10 --source {SOURCE} --destination {DEST} --dest-key ${{ secrets.STORAGE_KEY }} --recursive --set-content-type

Use with credential

steps:
- uses: actions/checkout@v2
- uses: kheiakiyama/install-azcopy-action@v1
  with:
    version: 'v10'
    creds: ${{ secrets.AZURE_CREDENTIALS }}
- run: azcopy_v10 --source {SOURCE} --destination {DEST} --recursive --set-content-type

This credentials feature is for sharing same credentials with azure-login.
How to create Azure credentials?
-> Please check azure-login page.

install-azcopy-action only support authorize with a service principal using a client secret.
https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-authorize-azure-active-directory#authorize-a-service-principal-by-using-a-client-secret

Develop

install-azcopy-action is tested below.

  • ubuntu-22.04(ubuntu-latest)
  • ubuntu-20.04
  • macos-12.0(macos-latest)
  • macos-11.0
  • windows-2022(windows-latest)
  • windows-2019

GitHub - Supported runners If you need to add another environment, please post a issue.

See develop-references.yml