Update roles/demolamp/tasks/redeploy.yml

This commit is contained in:
2024-02-23 17:23:10 +08:00
parent 85c4e0793f
commit 3a22d496b3

View File

@@ -15,7 +15,7 @@
- block: - block:
- name: create build dir if not exists - name: create build dir if not exists
file: file:
path: "{{ build_root_abspath }}" path: "{{ pathTemp }}"
state: directory state: directory
owner: root owner: root
group: root group: root
@@ -24,7 +24,7 @@
- name: git clone - name: git clone
git: git:
repo: "https://pvggitea.duckdns.org/GiteaTeam/demolamp.git" repo: "https://pvggitea.duckdns.org/GiteaTeam/demolamp.git"
dest: "{{ build_root_abspath }}" dest: "{{ pathTemp }}"
remote: "origin" remote: "origin"
version: "main" version: "main"
@@ -48,7 +48,7 @@
source: build source: build
tag: "{{ ansTagVer }}" tag: "{{ ansTagVer }}"
build: build:
path: "{{ build_root_abspath }}" path: "{{ pathTemp }}"
pull: false pull: false
push: yes push: yes
repository: "{{ demolamp.pushRepoName }}:{{ ansTagVer }}" repository: "{{ demolamp.pushRepoName }}:{{ ansTagVer }}"