Skip to content

Commit 3a5a6f7

Browse files
committed
fix aws sync target path
1 parent 0cdc2ac commit 3a5a6f7

File tree

2 files changed

+7
-2
lines changed
  • tests/ci/release/packaging/ansible/roles

2 files changed

+7
-2
lines changed

tests/ci/release/packaging/ansible/roles/update_deb_repo/tasks/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@
8989
msg: "{{ debug.stdout }}"
9090

9191
- name: Sync repos between source and target
92-
shell: "aws s3 sync --delete '{{ local_repo_path }}/{{ item }}' '{{ s3_repo_target_path }}/{{ release_environment }}/{{ item }}'"
92+
shell: "aws s3 sync --delete '{{ local_repo_path }}/{{ item }}' '{{ s3_repo_target_path }}/{{ item }}'"
93+
loop: "{{ apt_repos }}"
94+
when: cloudfront_origin_path != ""
95+
96+
- name: Sync apt repos between source and target
97+
shell: "aws s3 sync --delete '{{ local_repo_path }}/{{ item }}' '{{ s3_repo_target_path }}/{{ item }}'"
9398
loop: "{{ apt_repos }}"
9499
when: cloudfront_origin_path != ""

tests/ci/release/packaging/ansible/roles/update_rpm_repo/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@
4646
dest: "{{ local_repo_path }}/{{ repo_prefix }}yum-repo/{{ repo_name }}.repo"
4747

4848
- name: Sync repos between source and target
49-
shell: 'aws s3 sync --delete "{{ local_repo_path }}/{{ item }}" "{{ s3_repo_target_path }}/{{ release_environment }}/{{ item }}"'
49+
shell: 'aws s3 sync --delete "{{ local_repo_path }}/{{ item }}" "{{ s3_repo_target_path }}/{{ item }}"'
5050
loop: "{{ yum_repos }}"
5151
when: cloudfront_origin_path != ""

0 commit comments

Comments
 (0)