Advertisement
kromm77

GitLab deploy only with tags beginning with V

Dec 12th, 2019
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.28 KB | None | 0 0
  1. deploy to stage:
  2.   image: ruby:2.2
  3.   stage: deploy
  4.   environment:
  5.     name: foo-bar
  6.   script:
  7.    - apt-get update -yq
  8.     - apt-get install -y ruby-dev
  9.     - gem install dpl
  10. #    - ...
  11.   only:
  12.    #- tags  
  13.     - /^V.*$/
  14.       except:
  15.         - branches
  16.         - triggers
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement