stages: - deploy trigger: stage: deploy only: - master script: - "curl -X POST -F token=$GITLAB_TOKEN -F ref=master https://git.ok1kvk.cz/api/v3/projects/72/trigger/builds" cache: paths: - node_modules # needs following env variable: $GITLAB_TOKEN