Hello everyone!
Not sure if anybody already experienced this and has a solution other than "Change your workspace name to lowercase to get it working" (which sadly is not a solution as I can't do that because it's a company wide workspace across multiple departments and would cause huge trouble).
Problem:
Steps to reproduce:
Thank you very much for your help and have a lovely day!
All the best.
Tom
First bitbucket-pipelines.yml file:
pipelines:
default:
- step:
name: docker-build
services:
- docker
caches:
- docker
script:
- docker build -t testrepo:latest .
- pipe: atlassian/bbc-packages-push-container-image:1.0.7
variables:
IMAGE_NAME: "testrepo"
Second bucket-pipelines.yml file:
pipelines:
default:
- step:
name: docker-build
services:
- docker
caches:
- docker
script:
- export REPO_SLUG_LOWER=$(echo "$BITBUCKET_REPO_SLUG" | tr '[:upper:]' '[:lower:]')
- export WORKSPACE_LOWER=$(echo "$BITBUCKET_WORKSPACE" | tr '[:upper:]' '[:lower:]')
- docker login crg.apkg.io -u "$BITBUCKET_PACKAGES_USERNAME" -p "$BITBUCKET_PACKAGES_TOKEN"
- docker build -t "crg.apkg.io/$WORKSPACE_LOWER/$REPO_SLUG_LOWER:latest" .
- docker push "crg.apkg.io/$WORKSPACE_LOWER/$REPO_SLUG_LOWER:latest"
Hello and Welcome to Atlassian Community @Tom Hatzer
I think Atlassian Support will need to review this.
I’ve requested assistance because this looks to be a compatibility issue between a legacy mixed-case Bitbucket workspace ID and the container registry’s Docker-compatible lowercase namespace requirements. The Community cannot inspect or change the registry’s internal workspace mapping.
Best,
Arek🤠
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.