Balaji Vajjala's Blog

A DevOps Blog from Trenches

06

  • 6.1 Script a build
    • Learning Objectives
    • Create a build script

6.1 Script a build

Learning Objectives

By the end of this lesson you will be able to:

  • Script a build that packages software so that it can be deployed.

Create a build script

  1. From your AWSCLI instance go to sample_app, open some build scripts.
  2. You can also find these files by going to https://github.com/stelligent/sample_app/blob/master/Rakefile and https://github.com/stelligent/sample_app/blob/master/lib/tasks/sample_data.rake.
  3. Make a modification to the contents of the file and save it.
  4. Add the file in Git

    “` $ git add .

    “`

  5. Commit the file to Git

    “` $ git commit -m “Modified deployment script”

    “`

  6. Push it to the Git master.

    “` $ git push

    “`