Skip to content
triangle

GitHub Action

Install azcopy

v1.0.8 Latest version

Install azcopy

triangle

Install azcopy

Install azcopy and add it to PATH

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Install azcopy

uses: kheiakiyama/install-azcopy-action@v1.0.8

Learn more about this action in kheiakiyama/install-azcopy-action

Choose a version

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 lient 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