This repository contains a set of GitHub Actions workflows designed to automate various interactions with Azure Storage. These actions enable seamless management of storage resources directly from GitHub, facilitating a more integrated and automated cloud workflow.
- Automatic Storage Container Creation: A workflow to create a new container in an existing Azure Storage Account.
- Data Upload Workflow: A workflow to upload the contents of a specified folder from the repository to an Azure Storage container.
This workflow (azure-deploy-st-container.yml
) allows for the creation of a new container in a specified Azure Storage Account. It is manually triggered and requires the name of the container to be created.
The azure-deploy-file-to-storage-account.yml
workflow is designed to upload files from the "data" directory in this repository to a specified container in Azure Storage. This workflow is manually triggered and requires the target container name for uploading the files.
- An Azure account with an active subscription.
- An Azure Storage Account.
- Azure Service Principal with appropriate permissions.
Store your Azure credentials as a secret in your GitHub repository:
- Go to your GitHub repository.
- Navigate to 'Settings' > 'Secrets'.
- Click on 'New repository secret'.
- Name the secret
AZURE_CREDENTIALS
and paste your Azure Service Principal credentials in JSON format.
To use these workflows:
- Navigate to the 'Actions' tab in your GitHub repository.
- Select the desired workflow.
- Click 'Run workflow', enter the required inputs, and start the workflow.
Contributions to enhance these workflows are welcome. Please read the CONTRIBUTING.md file for details on our code of conduct, and the process for submitting pull requests to us.
This project is licensed under the MIT License - see the LICENSE.md file for details.
- The GitHub Community for providing valuable resources and examples.
- The Azure team for their extensive documentation and support.
For more details on each workflow, refer to the individual .yml
files in the .github/workflows
directory.