Skip to content

Commit

Permalink
fix(ansible): job_env
Browse files Browse the repository at this point in the history
  • Loading branch information
JellyBellyDev committed Feb 10, 2021
1 parent 3763730 commit 86fd906
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ansible-deploy/inventories/production/hosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
all:
vars:
ansible_user: "jellybellydev"
app_env: "prod"
job_env: "production"
home_path: "/home/jellybellydev/cicd"
current_path: "{{ home_path }}/current"
current_prev_path: "{{ current_path }}_prev"
Expand Down
2 changes: 1 addition & 1 deletion ansible-deploy/inventories/staging/hosts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
all:
vars:
ansible_user: "jellybellydev"
app_env: "staging"
job_env: "staging"
home_path: "/home/jellybellydev/staging-cicd"
current_path: "{{ home_path }}/current"
current_prev_path: "{{ current_path }}_prev"
Expand Down
2 changes: 1 addition & 1 deletion ansible-deploy/roles/service/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
gitlab_project_id: 24210173
gitlab_job_name: "prepare:{{ app_env }}"
gitlab_job_name: "prepare:{{ job_env }}"

artifact_url: "https://gitlab.com/api/v4/projects/{{ gitlab_project_id }}/jobs/artifacts/{{ app_version | replace('/', '%2F') }}/download?job={{ gitlab_job_name }}&private_token={{ gitlab_access_token }}"
artifact_url_ci: "https://gitlab.com/api/v4/projects/{{ gitlab_project_id }}/jobs/{{ ci_job_id }}/artifacts?private_token={{ gitlab_access_token }}"

0 comments on commit 86fd906

Please sign in to comment.