docker / build-push-action

GitHub Action to build and push Docker images with Buildx
https://github.com/marketplace/actions/build-and-push-docker-images
Apache License 2.0
4.13k stars 532 forks source link

throws uppercase repository error when repository is in lowercase #967

Closed schniti269 closed 10 months ago

schniti269 commented 10 months ago

Contributing guidelines

I've found a bug, and:

Description

Error: buildx failed with: ERROR: invalid tag "containersfallstudie.azurecr.io/***/frontendweb:14c4b972e95f9c491fa8557c104fd81f71ee2c05": repository name must be lowercase

if you are telling me i cant have uppercase secrets in this string why would that even make sense

Expected behaviour

pass as IT IS ALLLLLLLL IN LOWERCASEEEEEEEEE

Actual behaviour

FAIL

Repository URL

No response

Workflow run URL

No response

YAML workflow

- name: Build and push container image to registry
      uses: docker/build-push-action@v3
      with:
        push: true
        tags: containersfallstudie.azurecr.io/${{ secrets.AzureAppService_ContainerUsername_64da62845f5d4ca190df25f8e243d528 }}/frontendweb:${{ github.sha }}
        file: ./Dockerfile

Workflow logs

No response

BuildKit logs

No response

Additional info

No response

crazy-max commented 10 months ago

Error: buildx failed with: ERROR: invalid tag "containersfallstudie.azurecr.io/***/frontendweb:14c4b972e95f9c491fa8557c104fd81f71ee2c05": repository name must be lowercase

Value of ${{ secrets.AzureAppService_ContainerUsername_64da62845f5d4ca190df25f8e243d528 }} secret must contain capital letters otherwise it would not return this error. Please check your secret.

See also https://github.com/docker/build-push-action/blob/master/TROUBLESHOOTING.md#repository-name-must-be-lowercase