GitLab CI: Pipelines, CI/CD and DevOps for Beginners
課程大綱:
1-2 Your first pipeline
開始教怎麼寫pipeline,一些簡單的指令,touch、>、grep、test -f,寫了build和test兩個job,然後教怎麼寫artifacts
目前實作到2-18
https://gitlab.com/catsheue/my-static-website
條列記一些學習到的東西:
- The test command is used to verify that the file was created.
- The -f tag is needed to check that the specified file exists and is a regular file.
- The grep command is used for searching lines that match a regular expression. It does a global search with the regular expression and prints all matching lines.
- yaml裡的job預設是水平跑,所以要用stages來定義順序
- >> 是appending, > 會整個取代。 ex: echo “miou” >> cat.txt