build: fix user permissions for repo

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-07-20 17:20:47 +02:00
parent 190db0d153
commit db9607510b
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 10 additions and 5 deletions

View File

@ -12,17 +12,22 @@
win_shell: |
git config --global --add safe.directory {{ beacon_node_repo_path }}
- name: Fix repo folder ownership
win_acl:
path: '{{ beacon_node_repo_path }}'
user: '{{ beacon_node_service_user_name }}'
rights: 'FullControl'
inherit: 'ContainerInherit, ObjectInherit'
type: 'allow'
- name: Update Git repo branch
become: true
become_user: '{{ beacon_node_service_user_name }}'
win_shell: |
git checkout --force {{ beacon_node_repo_branch }}
args:
chdir: '{{ beacon_node_repo_path }}'
- name: Fix repo permissions
win_owner:
path: '{{ beacon_node_repo_path }}'
user: '{{ beacon_node_service_user_name }}'
- name: Create build script
win_template:
src: 'build.sh.j2'