This repository has been archived on 2025-06-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
loopabull-tasks/playbooks/roles/flag_build_commits/tasks/main.yml
Pierre-Yves Chibon 2c4a690f0f Start working on the role to flag commits on successful builds
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2018-08-08 16:24:57 +02:00

16 lines
522 B
YAML

- name: Install script flagging commits on dist-git upon successful build
copy:
src: files/flag_commit_build.py
dest: /usr/local/bin/flag_commit_build.py
mode: 0755
- name: Run the script
command: /usr/local/bin/flag_commit_build.py '{{ msg | to_json }}'
register: output
environment:
API_TOKEN: "{{ api_token_flag_commit_build }}"
API_TOKEN_STG: "{{ api_token_flag_commit_build_stg }}"
- name: Show the output of the script
debug:
msg: "Output of the script: {{ output }}"