Questions tagged [bitbucket-pipelines]

If a question is about the CI template of bitbucket, i.e. bitbucket-pipelines, then this tag could be used.

19 questions
6
votes
1 answer

How to bind ports for docker container in bitbucket pipelines?

I'd like to test an application using bitbucket pipelines with a custom docker image running some services. I have a dev docker image which runs all the services I need in order for tests to pass. docker run -it -p 3000:3000 -p 6379:6379 -p…
ConorSheehan1
  • 515
  • 1
  • 7
  • 10
3
votes
2 answers

OOM when running Bitbucket pipelines

as one (sometimes failing) step of our pipeline we setup environment via installation of docker which runs 3 containers through own docker-compose. Unfortunately we could not figure out how to impose any memory limits on individual containers in…
xvga
  • 131
  • 2
3
votes
1 answer

How to avoid code duplication in bitbucket-pipelines?

The following bitbucket-pipelines file has been created: options: docker: true pipelines: default: - step: script: - echo "Login to the docker registry" - docker login some-docker-registry - step: …
030
  • 13,383
  • 17
  • 76
  • 178
2
votes
0 answers

Can you use docker-machine from Bitbucket Pipelines?

I have some servers where I have nginx installed on the base system in reverse proxy mode, and then use Docker deployments to push out containers where just the local HTTP port is exposed. We don't have a full CI/CD system in place, and have been…
mpdonadio
  • 131
  • 3
2
votes
1 answer

How to deploy applications to k8s using bitbucket pipelines?

The aim is to implement Continuous Deployment (CD) to a k8s cluster. It works to deploy a Nginx image to the k8s. https://github.com/kubernetes/kubernetes/blob/master/examples/simple-nginx.md kubectl run my-nginx --image=nginx --replicas=2…
030
  • 13,383
  • 17
  • 76
  • 178
2
votes
1 answer

Is there a better model for my CI/CD cycle?

I am having some troubles finding a better model for my CI/CD cycle. This is mainly gitflow issue. My current model : We have 2 bitbucket branches : master and develop. Both are linked via webhooks to jenkins to be deployed to prod. and dev.…
2
votes
1 answer

Bitbucket pipelines: Deployment destination dependent on commit author

I'd like to create a deployment pipeline triggered on PR creation that would deploy to e.g. 'staging1' environment if it's my commit and 'staging2' if it's a commit of other team member (the idea is for each team member to have his/her own…
1
vote
1 answer

What's the equivalent of `heroku container:release web` without using heroku-cli?

I have a bitbucket pipeline that almost working: image: atlassian/default-image:2 pipelines: default: - step: services: - docker script: #Build the image - docker build -t $IMAGE_NAME…
dwjohnston
  • 231
  • 3
  • 11
1
vote
1 answer

Continuous integration using bitbucket pipelines failed for OpenEdx

I am trying to set up CI process using bitbucket pipelines for my Openedx site. The script that i am using in my bitbucket-pipelines.yml file is given below. I am trying to just set up the build process on LMS (themes), so that whenever someone make…
1
vote
2 answers

Unable to connect static pages web app to bitbucket account

I followed the instructions on https://learn.microsoft.com/en-us/azure/static-web-apps/bitbucket?tabs=vanilla-javascript to setup a static web app and hook it up to a bitbucket repository I created (I did not import any code from GitHub as indicated…
MisdeBug
  • 11
  • 3
1
vote
1 answer

Are Bitbucket branches pipelines running before or after the commit to that branch?

I am adding a production deployment pipeline to a Bitbucket project. The YAML file is roughly image: php:8.2.20 pipelines: branches: master: - step: name: Deploying to production deployment: production …
1
vote
1 answer

bitbucket pipeline to push commits to another repo

So this is the scenario i have right now, we have a repo (boilerplate) that contains our infrastructure code, docker files, and pipeline scripts, each time we create a new project we copy this repo to a new repo. the issue is this when we make a…
1
vote
1 answer

Terraform plan does not update AWS Task Definition with last active revision value

I would like your help on a situation that I'm facing with terrafom. My company recently launched a new website whose wordpress is hosted in an AWS ECS container. I had to make some adjustments to the site's infrastructure and I noticed that, when…
1
vote
1 answer

Building a pipeline to recognize changes in a terraform template compared to the git commit before and having it apply changes using specified command

Looking to get pointed in the right direction: I am trying to build a pipeline that will recognize changes in a remote terraform template that will recognize changes compared to the previous git command before mine and have it only apply those…
1
vote
1 answer

Unable to use AWS ECS docker context in bitbucket pipelines deployment step

I'm trying to add a deployment step to bitbucket pipelines that works successfully when I simulate locally but fails when executing the steps in bitbucket. I have created a simple docker image that contains docker and compose-cli as per…
1
2