Using the Bitbucket pipe to upload a Docker image to a Nexus repository

I would like to use the Nexus Bitbucket pipe in order to upload a Docker image to the repository. I’ve tried to upload an image with the docker commands, something like:

docker build -t <Nexus URL>/my-image-name .
docker login -u <username> -p <password> <Nexus URL>
docker <Nexus URL>/my-image-name

And this is working. But I’m not sure whether this is possible to do with the Bitbucket pipe. I’ve tried it but I was not able to guess what values are need to type in the ATTRIBUTES variables (as this is mandatory).

Any help would be really appreciated :wink: