Skip to content

Commit

Permalink
feat(sentry): update release version to 12 characters
Browse files Browse the repository at this point in the history
Always try to create a release and a deploy to allow redeploy
  • Loading branch information
aegypius committed Oct 30, 2020
1 parent 168ca27 commit b0f29a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/steps/sentry_notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Authorization: "Bearer {{ lephare_sentry_token }}"
body: |
{
"version": "{{ ansistrano_git_result.after|truncate(7, true, '') }}",
"version": "{{ ansistrano_git_result.after|truncate(12, true, '') }}",
"projects": ["{{ lephare_sentry_project }}"],
"refs": [
{
Expand All @@ -20,12 +20,12 @@
}
register: sentry_create_release_result
changed_when: sentry_create_release_result.status == 201
when: ansistrano_git_result.after != ansistrano_git_result.before
# when: ansistrano_git_result.after != ansistrano_git_result.before
ignore_errors: True

- name: LEPHARE - Sentry - Notify deploy
- name: LEPHARE - Sentry - Create deploy
uri:
url: "https://sentry.io/api/0/organizations/{{ lephare_sentry_organization }}/releases/{{ ansistrano_git_result.after|truncate(7, true, '') }}/deploys/"
url: "https://sentry.io/api/0/organizations/{{ lephare_sentry_organization }}/releases/{{ ansistrano_git_result.after|truncate(12, true, '') }}/deploys/"
method: POST
body_format: json
status_code: "201"
Expand Down

0 comments on commit b0f29a8

Please sign in to comment.