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.yml
in the master branch of the repository. Configure.travis.yml
as follows:Use
go
with version1.11.x
as 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
beautifulhugo
theme by creating athemes/beautifulhugo
folder and cloning it from the GitHub repository:https://GitHub.com/halogenica/beautifulhugo.git
Generate blog content with the
hugo --theme beautifulhugo
command...