This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Commit cd667b4 1 parent fba1561 commit cd667b4 Copy full SHA for cd667b4
File tree 1 file changed +9
-2
lines changed
template/build/core/phing/tasks
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 36
36
</if >
37
37
</target >
38
38
39
- <target name =" deploy:artifact:add- remote" description =" Adds a git remote and checks out deploy branch from upstream." >
39
+ <target name =" deploy:artifact:remote:add " description =" Adds a git remote and checks out deploy branch from upstream." >
40
40
<echo message =" Fetching from git remote ${deploy.remote}" />
41
41
42
42
<!-- Generate an md5 sum of the remote URL to use as remote name. -->
43
43
<exec command =" echo ${deploy.remote} | openssl md5 | cut -d' ' -f 2" outputProperty =" remoteName" checkreturn =" true" />
44
44
<exec command =" git remote add ${remoteName} ${deploy.remote}" dir =" ${deploy.dir}" logoutput =" true" passthru =" true" checkreturn =" true" />
45
+
46
+ <!-- @todo Only call this for the first remote. -->
47
+ <phingcall target =" deploy:artifact:remote:pull" />
48
+ </target >
49
+
50
+ <target name =" deploy:artifact:remote:pull" description =" Checks out deploy branch from upstream remote." >
45
51
<exec command =" git fetch ${remoteName} ${deploy.branch}" dir =" ${deploy.dir}" logoutput =" true" passthru =" true" />
46
52
47
53
<!-- Create the new branch, "[source-branch-name]-build". -->
52
58
</target >
53
59
54
60
<target name =" deploy:artifact:add-remotes" description =" Add remotes and fetch upstream refs." >
55
- <foreach list =" ${git.remotes}" param =" deploy.remote" target =" deploy:artifact:add- remote" />
61
+ <foreach list =" ${git.remotes}" param =" deploy.remote" target =" deploy:artifact:remote:add " />
56
62
</target >
57
63
58
64
<target name =" deploy:artifact:build" description =" Generates a deploy-ready build in deploy.dir."
72
78
<delete dir =" ${deploy.dir}/hooks" failonerror =" false" quiet =" true" />
73
79
<delete dir =" ${deploy.dir}/factory-hooks" failonerror =" false" quiet =" true" />
74
80
<delete dir =" ${deploy.dir}/patches" failonerror =" false" quiet =" true" />
81
+ <delete dir =" ${deploy.dir}/vendor" failonerror =" false" quiet =" true" />
75
82
</target >
76
83
77
84
<target name =" deploy:artifact:commit" >
You can’t perform that action at this time.
0 commit comments