Skip to content

Instantly share code, notes, and snippets.

@rodrigosiviero
Last active January 22, 2020 12:48
Show Gist options
  • Select an option

  • Save rodrigosiviero/ebe91babab9d56b100fd95f83f5292af to your computer and use it in GitHub Desktop.

Select an option

Save rodrigosiviero/ebe91babab9d56b100fd95f83f5292af to your computer and use it in GitHub Desktop.
create_release:
stage: deploy
image: docker:latest
tags:
- docker_runner
script:
- curl --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: gDybLx3yrUK_HLp3qPjS" --data '{ "name": "New release", "tag_name": "v0.3", "description": "Super nice release", "milestones": ["v1.0", "v1.0-rc"], "assets": { "links": [{ "name": "hoge", "url": "https://google.com" }] }}' --request POST https://gitlab.example.com/api/v4/projects/24/releases
only:
- master
- merge_request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment