1
0

add refspec configuration in hugo role

This commit is contained in:
cuqmbr 2025-06-24 14:03:41 +03:00
parent ba6507e57c
commit 286005e014
Signed by: cuqmbr
GPG Key ID: 0AA446880C766199
3 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,7 @@ hugo_version: 0.147.9
hugo_homedir: /opt/hugo hugo_homedir: /opt/hugo
hugo_git_repo: https://gitea.cuqmbr.xyz/cuqmbr/cuqmbr.xyz.git hugo_git_repo: https://gitea.cuqmbr.xyz/cuqmbr/cuqmbr.xyz.git
hugo_git_commit: 5b894854d47b41996b1901fa257f8c2cad9224f9 hugo_git_commit: 5b894854d47b41996b1901fa257f8c2cad9224f9
hugo_git_refspec: refs/heads/main
nginx_settings: nginx_settings:
server_tokens: false server_tokens: false

View File

@ -4,3 +4,4 @@ hugo_version: 0.147.9
hugo_homedir: /opt/hugo hugo_homedir: /opt/hugo
hugo_git_repo: https://gitea.cuqmbr.xyz/cuqmbr/cuqmbr.xyz.git hugo_git_repo: https://gitea.cuqmbr.xyz/cuqmbr/cuqmbr.xyz.git
hugo_git_commit: 5b894854d47b41996b1901fa257f8c2cad9224f9 hugo_git_commit: 5b894854d47b41996b1901fa257f8c2cad9224f9
hugo_git_refspec: refs/heads/main

View File

@ -28,6 +28,7 @@
depth: 1 depth: 1
dest: "{{ hugo_source }}" dest: "{{ hugo_source }}"
version: "{{ hugo_git_commit }}" version: "{{ hugo_git_commit }}"
refspec: "{{ hugo_git_refspec }}"
- name: Create hugo site build directory. - name: Create hugo site build directory.
ansible.builtin.file: ansible.builtin.file: