Skip to content

Invalid Secret Name Error in Azure Container Apps Deployment on Deploying from Github Private Registry #116

Open
@an-2018

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:

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions