I have a project called CI/CD Support with a repository php-composer which has a pipeline which produces a Docker/OCI image which is pushed to Bitbucket Packages. Now I would like to use that image in the Pipeline of another repository (in another project but in the same workspace).
Unfortunately $BITBUCKET_PACKAGES_TOKEN is scoped to the repository in which the pipeline runs.
How do I access an image on crg.apkg.io which is owned by another repository/project from a Bitbucket Pipeline?
Right now - there's no workspace-scoped token for packages, unfortunately. We have a feature request raised with our developers for this functionality:
As an interim workaround - you may instead use a personal API token and store it as a workspace/repository variable and authenticate with that instead in the pipeline using the read:package:bitbucket scope:
Cheers!
- Ben (Bitbucket Cloud Support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.