Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andrebriggs/spartan-app


https://github.com/andrebriggs/spartan-app

Last synced: about 16 hours ago
JSON representation

Awesome Lists containing this project

README

        

# spartan-app

## GitHub Action Setup

Add a secret `AZURE_CREDENTIALS` as mentioned [here](https://github.com/marketplace/actions/azure-cli-action#configure-azure-credentials-as-github-secret)

Associate Service Principal with ACR to be able to push to ACR

```bash
ACR_REGISTRY_ID=$(az acr show --name $ACR_NAME --query id --output tsv)
az role assignment create --assignee $SERVICE_PRINCIPAL_ID --scope $ACR_REGISTRY_ID --role acrpush
```

Other secrets to add:

* __HLD_REPO_SECRET__ - GitHub Personal Access Token
* __INTROSPECTION_ACCOUNT_KEY__ - Azure Stroage Account Key
* __REGISTRY_LOGIN_SERVER__ - (ACRNAME).azurecr.io
* __REGISTRY_PASSWORD__ - SP Password
* __REGISTRY_USERNAME__ - SP Client Id

Useful GitHub Actions Links

* [Environment Variables](https://docs.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables)
* [Workflow Jobs API](https://docs.github.com/en/rest/reference/actions#workflow-jobs)