COSCUP x RubyConf TW 2021

使用 Bash Shell Script 自製 Concourse CI 資源型別
07-31, 10:40–11:10 (Asia/Taipei), AU
Language: 漢語


Talk Length

60

您是否知悉並同意如採遠端形式分享,需提供預錄影片(您需同意大會才能接受您的稿件) – yes Translate Title

How to use Bash shell script to make a new resource type for Concourse CI

hackmd url

https://hackmd.io/@coscup/BkCHUaPAO/%2F%40coscup%2FS1vV8awRO

slido url

https://app.sli.do/event/tzls3lgs

Abstract

https://concourse-ci.org/ 是個 Apache 2.0 授權、使用 Go 程式語言、為了 CI/CD 而製作的自由軟體,它的 pipelines/jobs 全部都是由 check/get/put resources 與 tasks 所組成,除了內建的常用的 git, docker-image/registry-image, time,... 這些 resource type 之外,都是要依賴其它由社群所提供的各種 resource type 來達成,例如軟體專案使用的是 git 以外的版本控管系統,如果找不到想要的 resource type,又或者是不太信任社群提供的,想要自幹自己的 resource type 來用比較安心,可以來聽聽看 $4 怎麼使用幾個簡單的指令,從無到有製作出可以重複使用的 resource type。

簡介 Concourse CI
示範 resource type 的使用方式
從頭製作 resource type

English Abstract

https://concourse-ci.org/ is a free software for CI/CD licensed by Apache 2.0 and made by golang. Its pipelines/jobs are all made by check/get/put resources and tasks. Except the common built-in resource types, such as git, docker-image/registry-image and time, it needs to rely on the resource types made by the Concourse CI community. If the version control system that you want to use is not Git or you can not find the resource type to fulfill what you need or you have some security concern for those resource types provided by the community, you can come here to see how $4 uses some simple bash shell commands to make a new resource type from scratch.

Introduce Concourse CI
Demo the usage of resource type
Make a new resource type from scratch