Use plain name instead of variable.
This commit is contained in:
parent
25ab020dbb
commit
f430dfeb79
|
|
@ -30,7 +30,7 @@
|
||||||
Authorization: "Bearer {{ github_token }}"
|
Authorization: "Bearer {{ github_token }}"
|
||||||
register: github_repo
|
register: github_repo
|
||||||
|
|
||||||
- name: Get a detailed list of owned GitLab projects
|
- name: Get details of GitLab project
|
||||||
uri:
|
uri:
|
||||||
url: "https://gitlab.com/api/v4/projects?owned=true&search={{ role }}"
|
url: "https://gitlab.com/api/v4/projects?owned=true&search={{ role }}"
|
||||||
method: GET
|
method: GET
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
return_content: yes
|
return_content: yes
|
||||||
register: gitlab_projects
|
register: gitlab_projects
|
||||||
|
|
||||||
- name: Pick project_ids from GitLab projects
|
- name: Pick project_ids from GitLab project
|
||||||
set_fact:
|
set_fact:
|
||||||
gitlab_projects: "{{ gitlab_projects.json | selectattr('name', 'equalto', role) | list }}"
|
gitlab_projects: "{{ gitlab_projects.json | selectattr('name', 'equalto', role) | list }}"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,6 @@ molecule:
|
||||||
|
|
||||||
galaxy:
|
galaxy:
|
||||||
script:
|
script:
|
||||||
- ansible-galaxy role import --api-key ${GALAXY_API_KEY} ${CI_PROJECT_NAMESPACE} ${CI_PROJECT_NAME}
|
- ansible-galaxy role import --api-key ${GALAXY_API_KEY} {{ gitlab_namespace }} ${CI_PROJECT_NAME}
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG != null
|
- if: $CI_COMMIT_TAG != null
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue