File tree Expand file tree Collapse file tree 2 files changed +36
-13
lines changed Expand file tree Collapse file tree 2 files changed +36
-13
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ $(error VERSION is not set)
3
3
endif
4
4
5
5
ifeq ($(TARGET ) , GHCR)
6
- NAME =ghcr.io/camptocamp/odoo-project
6
+ NAME =ghcr.io/camptocamp/docker- odoo-project
7
7
else
8
8
NAME =camptocamp/odoo-project
9
9
endif
16
16
17
17
all : build
18
18
19
+ .PHONY : setup
20
+ setup :
21
+ bash setup.sh
19
22
20
23
.PHONY : build
21
24
build :
@@ -25,33 +28,24 @@ build:
25
28
.PHONY : tag
26
29
tag :
27
30
docker tag $(BUILD_TAG ) $(IMAGE ) -$(TAG )
28
- docker tag $(BUILD_TAG ) -onbuild $(IMAGE ) -$(TAG ) -onbuild
29
- docker tag $(BUILD_TAG ) -batteries $(IMAGE ) -$(TAG ) -batteries
30
- docker tag $(BUILD_TAG ) -batteries-onbuild $(IMAGE ) -$(TAG ) -batteries-onbuild
31
+
31
32
32
33
33
34
.PHONY : push
34
35
push :
35
36
docker push $(IMAGE ) -$(TAG )
36
- docker push $(IMAGE ) -$(TAG ) -onbuild
37
- docker push $(IMAGE ) -$(TAG ) -batteries
38
- docker push $(IMAGE ) -$(TAG ) -batteries-onbuild
39
37
40
38
41
39
.PHONY : tag_latest_main
42
40
tag_latest_main :
43
41
docker tag $(BUILD_TAG ) $(NAME ) :latest
44
- docker tag $(BUILD_TAG ) -onbuild $(NAME ) :latest-onbuild
45
- docker tag $(BUILD_TAG ) -batteries $(NAME ) :latest-batteries
46
- docker tag $(BUILD_TAG ) -batteries-onbuild $(NAME ) :latest-batteries-onbuild
42
+
47
43
48
44
49
45
.PHONY : push_latest_main
50
46
push_latest_main :
51
47
docker push $(NAME ) :latest
52
- docker push $(NAME ) :latest-onbuild
53
- docker push $(NAME ) :latest-batteries
54
- docker push $(NAME ) :latest-batteries-onbuild
48
+
55
49
56
50
57
51
.PHONY : test
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -euxo pipefail
3
+
4
+ #
5
+ # Build the image
6
+ #
7
+ # Normally run by the Makefile:
8
+ #
9
+ # $ make VERSION=$VERSION build
10
+ #
11
+ # It expects the following variables to be set:
12
+ #
13
+ # * VERSION (9.0, 10.0, 11.0, ...)
14
+ # * BUILD_TAG (tag of the 'latest' image built)
15
+ #
16
+ if [ -z " $VERSION " ]; then
17
+ echo " VERSION environment variable is missing"
18
+ exit 1
19
+ fi
20
+
21
+ SRC=${SRC:= (mktemp -d)}
22
+ echo " Creating $SRC "
23
+
24
+ cp -r ${VERSION} /. $SRC /
25
+ cp -r bin/ $SRC
26
+ cp -rT common/ $SRC
27
+ cp -r install/ $SRC
28
+ cp -r start-entrypoint.d/ $SRC
29
+ cp -r before-migrate-entrypoint.d/ $SRC
You can’t perform that action at this time.
0 commit comments