Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Deploy an application from Git Repository

To deploy an application hosted in a repository, click on the Deploy app button. A dialog will open in which you must fill the necessary data to deploy the application.

Deploy from Git
Deploy from Git dialog

Required information:

  • App Name: with application name
  • Target Language: with the programming language in which the application is implemented
  • Repository URL: with the repository URL (https://github.com/napptive/go-example-launcher-app.git)
  • Personal access token: If the repository is private, you will need to select the private repository option and enter a personal access token

Once you have filled in the personal access token (PAT) and the repository URL, you can check if you have access to the repository by clicking on the Access check button.

How it works

At the top level, the launching an application in this way involves:

  1. Cloning the git repository
  2. Determining the build and execution workflow attending to the target language. Supported languages include: Golang, NodeJS, Python, and static content.
  3. Building the code
  4. Running the application

For more details on the steps involved in the different languages check the default workflow phases. There is the possibility of customizing the deployment, indicating the ports, inputs, etc. necessary for the proper functioning of the application. To do this you need to add a workflow.yaml file to your application’s repository.

You can use this example project to deploy see the workflow:

version: 0
application:  
  language: go
  ports:
  - port: 3000
    ingress: true
    ingressPath: /
pre-exec:
  commands:
  - cmd: date # Print the deployment date

Notice that this operation does not require a Dockerfile and does not build and publish any docker container. Your repository code will be built inside the running application and executed locally.