LoginSignup
0
1

More than 3 years have passed since last update.

ワンライナーでGitLab-CIの環境変数を取り出すシェル(Ruby)スクリプト

Posted at
ruby -e 'require "yaml"; yaml = YAML.load_file(".gitlab-ci.yml"); variables = yaml["variables"]; variables.each { |key, value| cmd = "export #{key}=\"#{value}\""; system("echo #{cmd}"); }'
0
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1