[Rails] Site internet de la World Tartiflette Tour.
1
#!
2
3
# A sample pre-build hook
4
#
5
# Checks:
6
# 1. We have a clean checkout
7
# 2. A remote is configured
8
# 3. The branch has been pushed to the remote
9
# 4. The version we are deploying matches the remote
10
#
11
# These environment variables are available:
12
# KAMAL_RECORDED_AT
13
# KAMAL_PERFORMER
14
# KAMAL_VERSION
15
# KAMAL_HOSTS
16
# KAMAL_ROLE (if set)
17
# KAMAL_DESTINATION (if set)
18
19
if[-n"$(gitstatus--porcelain)"];then
20
echo"
21
22
23
24
25
$(gitremote)
26
27
"$first_remote"
28
""
29
30
31
32
$(gitbranch--show-current)
33
34
"$current_branch"
35
""
36
37
38
39
$(gitls-remote$first_remote--tags$current_branch|cut-f1)
40
41
"$remote_head"
42
""
43
44
45
46
"$KAMAL_VERSION""$remote_head"
47
"$KAMAL_VERSION$remote_head"
48
49
50
51
52