stages: - prepare - echo prepare-job: stage: prepare script: - echo "Prepare bofore echo" echo-job: stage: echo script: - echo "Ahoy! This is Gitlab CI/CD!"
stages: - dev - stg dev-job: stage: dev script: - echo "Hello, $GITLAB_USER_LOGIN!" - echo "This is $CI_COMMIT_BRANCH branch." - sleep 5 stg-job: stage: stg script: - echo "hello world!"
$GITLAB_USER_LOGIN, $CI_COMMIT_BRANCH branchは予め用意されている模様
### Docker
default: image: ruby:2.7.2 stages: - stg hello-job: stage: stg script: - ruby -v
### artifact
stages: - dev generate-file: stage: dev artifacts: paths: - hoge.txt script: - echo hoge > hoge.txt
なるほど、なんか色々できそうなことはわかった