File tree 1 file changed +22
-3
lines changed 1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+
4
+ # Setup
3
5
set -uexo pipefail
4
6
which greadlink > /dev/null 2> /dev/null && readlink=greadlink || readlink=readlink
5
7
rundir=$( $readlink -f " ${0%/* } " )
6
8
cd " $rundir "
7
9
10
+
11
+ # Command to run
12
+
8
13
ARG=${1:- build-proxy}
9
14
15
+
16
+ # Properties
17
+
10
18
SCOPE=" deployable"
11
19
NAME=" debian-build"
12
20
SCOPE_NAME=" ${SCOPE} /${NAME} "
@@ -16,6 +24,8 @@ PROXY="http://10.8.8.8:3142"
16
24
BUILD_ARGS=" "
17
25
18
26
27
+ # Commands
28
+
19
29
pull (){
20
30
docker pull " ${IMAGE} "
21
31
}
@@ -39,6 +49,16 @@ proxy(){
39
49
echo " set BUILD_ARGS: ${BUILD_ARGS} "
40
50
}
41
51
52
+ git_tag (){
53
+ git tag -f $( date +%Y%m%d) && git push -f --tags
54
+ }
55
+
56
+ clean (){
57
+ docker rmi ${SCOPE_NAME}
58
+ }
59
+
60
+
61
+ # Orchestration
42
62
43
63
pull-build (){
44
64
pull
@@ -63,9 +83,8 @@ build-au-proxy(){
63
83
pull-build
64
84
}
65
85
66
- clean (){
67
- docker rmi ${SCOPE_NAME}
68
- }
86
+
87
+ # Runit
69
88
70
89
$ARG
71
90
You can’t perform that action at this time.
0 commit comments