Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrebriggs/spartan-app
https://github.com/andrebriggs/spartan-app
Last synced: about 16 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/andrebriggs/spartan-app
- Owner: andrebriggs
- Created: 2019-04-22T15:01:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-15T02:38:26.000Z (about 4 years ago)
- Last Synced: 2024-04-16T04:29:58.253Z (7 months ago)
- Language: Shell
- Size: 86.9 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 IdUseful 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)