I try to push an image to DigitalOcean through bitbucket pipelines but I have a problem with doctl
image: atlassian/default-image:2
pipelines:
branches:
stage:
- step:
name: Deploy to registry
script:
- echo "deploy to registry"
- curl -sL https://github.com/digitalocean/doctl/releases/download/v1.54.0/doctl-1.54.0-linux-amd64.tar.gz | tar -xzv
- mv ./doctl /usr/local/bin
- doctl auth init -t 57bab70792ca2049e2644bebbb5234a9sdas9d7as897da9s7d98as7d9aas8d99 &&
- doctl account get
- doctl registry login --trace.
# THIS HERE DOES NOT WORK I GET AN ERROR ON PIPELINES
#Error: GET https://api.digitalocean.com/v2/registry/docker-credentials?read_write=true: 403 you do not have access for the attempted action
- step:
name: Deploy to droplet
script:
- echo "deploy on stage"
Has someone an idea how to fix this and then push the Image to DO Registry
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
@SmallAquaFish, hi, did you manage to get this working?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.