Chapter 1: Introduction to DevOps
Activity 1: CI/CD Pipeline for the DevOps Blog
Solution:
Note
In this solution, Hugo is used to generate website content. Hugo is a popular open-source static site generator that provides speed and flexibility. Documentation and further information is available on the official website: https://gohugo.io
Perform the following steps to complete this activity:
- Create a file with the name
.travis.ymlin the master branch of the repository. Configure.travis.ymlas follows:Use
gowith version1.11.xas the Travis-CI worker language:language: go go: - 1.11.x
Install Hugo (https://GitHub.com/gohugoio/hugo) using the "
go get GitHub.com/gohugoio/hugo" command:install: - go get GitHub.com/gohugoio/hugo
Install the
beautifulhugotheme by creating athemes/beautifulhugofolder and cloning it from the GitHub repository:https://GitHub.com/halogenica/beautifulhugo.gitGenerate blog content with the
hugo --theme beautifulhugocommand...