Azure / Azure/container-apps-deploy-action
Invalid Secret Name Error in Azure Container Apps Deployment on Deploying from Github Private Registry
- Dominant language
- TypeScript
- Stars
- 94
- Forks
- 51
- Avg merge
- 4d 18h
- Merged PRs (30d)
- 1
Description
#### Error Details:
The deployment action for an Azure Container App is failing with the following error message, here using the GitHub container registry to deploy previously built images:
```
ERROR: (ContainerAppInvalidSecretName) Secret name has an invalid value 'ghcrio-***'. A value must consist of lower case alphanumeric characters, '-', and must start and end with an alphanumeric character. The length must not be more than 253 characters.
Error: The process '/usr/bin/az' failed with exit code 1
Error: The process '/usr/bin/az' failed with exit code 1
```
#### YML Configuration Related to the Issue:
```yaml
- name: Build and push container image to registry
uses: azure/container-apps-deploy-action@v2
with:
registryUrl: ghcr.io
registryUsername: ${{ secrets.CONTAINER_USER_NAME }}
registryPassword: ${{ secrets.CONTAINER_PASSWORD }}
containerAppName: service-app-dev
resourceGroup: project-rg-dev
imageToDeploy: ghcr.io/repository/service-app-dev:${{ github.sha }}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.