Top Menu

Jump to content
Home
    • Projects
    • Work packages
    • News
    • Getting started
    • Introduction video
      Welcome to OpenProject
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Professional support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?
      Create a new account

Side Menu

  • Overview
  • Roadmap
  • Work packages
  • News
  • Wiki
    • Table of contents
      • Hierarchy leafAI Tools for Development
      • Hierarchy leafDeployment To the Server(Modified)
      • Hierarchy leafHosting BTCPayServer in Linux server
      • Hierarchy leafHow to overcome bitbucket login problem (Windows)
      • Expanded. Click to collapseCollapsed. Click to showInstalling a project in Elintegro
        • Hierarchy leafPipeline setUp for Bitbucket
      • Expanded. Click to collapseCollapsed. Click to showInterview University
        • Expanded. Click to collapseCollapsed. Click to showDocker: Install an Elintegro App within Linux server
          • Hierarchy leafConnect to Docker of Omnipay
      • Expanded. Click to collapseCollapsed. Click to showKafka Installation Guide
        • Expanded. Click to collapseCollapsed. Click to showComparing Kafka with other topic technologies
          • Hierarchy leafDesign a messaging app, high level, using kafka
      • Hierarchy leafOpen Project
      • Hierarchy leafRebase with Development Branch
      • Hierarchy leafRemote Debugger with IntelliJ
      • Hierarchy leafTelegram API
      • Hierarchy leafUpgrading Elintegro apps to Grails 6
You are here:
  • Installing a project in Elintegro
  • Pipeline setUp for Bitbucket

Content

Pipeline setUp for Bitbucket

  • More
    • Table of contents

To create the pipeline for bitbucket, we need two files i.e deploy.sh(can create for staging and production) and bitbucket.pipeline.yml in our application.

  • Make a directory called deployment and create the sub directory for stage and production and added the file deploy.sh inside the sub directory in our application as below:
  • To create the bitbucket.pipeline.yml , the file is  provided by the bitbucket just we need to commit that file from the bitbucket and we can add required process to deploy through the pipeline.Here how the bitbucket.pipeline.yml looks like :

After that go to the bitbucket, and go to the repository setting  and click SSH keys option and it will show like this :

Here the SSH public key already generated(if not you can generate), so we need to copy that public key and need to add this key in the server in the directory called ssh/authorized_keys, So below the command to add the ssh pub key to the server using vim :-

  1. vim ~/.ssh/authorized_keys
  2. Click Shift + i to insert.
  3. Right click and paste the copied SSH pub key.
  • After adding the public key in the server, we need to add the fingerprint in the bitbucket for the server.To do that
    1. Go to the Repository settings and click the SSH keys.

    2. You will see the known hosts with the input field i.e host address and the button called fetch

    3. Add the ip of the server in the host address and click fetch.

    4. After adding the ssh key to the server, you need to go the deployment in the bitbucket and add the environment which will look like this :

      So in the bitbucket.pipeline.yml you need to define the environment  you want to deploy as shown in the figure :
      Now, your application is ready for deployment through bitbucket. 

      -----------------------------------------------------------------------------🤩Happy Deployment😍-------------------------------------------------------------------------------------------------------

Loading...