Skip to content

Commit 5e158e3

Browse files
committed
Add management scripts
1 parent 28c4341 commit 5e158e3

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

deploy/docker/manifest.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
VERSION=${VERSION:-latest}
4+
PUSH=${PUSH:-false}
5+
6+
ALL_IMAGES=(
7+
"crapi/crapi-identity"
8+
"crapi/crapi-workshop"
9+
"crapi/crapi-chatbot"
10+
"crapi/crapi-community"
11+
"crapi/crapi-web"
12+
"crapi/gateway-service"
13+
"crapi/mailhog"
14+
)
15+
16+
for image in "${ALL_IMAGES[@]}"; do
17+
docker manifest create \
18+
$image:$VERSION \
19+
--amend $image:$VERSION-amd64 \
20+
--amend $image:$VERSION-arm64
21+
done
22+
23+
if [ "$PUSH" = true ]; then
24+
for image in "${ALL_IMAGES[@]}"; do
25+
docker manifest push $image:$VERSION
26+
done
27+
fi

deploy/docker/publish-all.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
VERSION=${VERSION:-latest}
4+
PUSH=${PUSH:-false}
5+
6+
ALL_IMAGES=(
7+
"crapi/crapi-identity"
8+
"crapi/crapi-workshop"
9+
"crapi/crapi-chatbot"
10+
"crapi/crapi-community"
11+
"crapi/crapi-web"
12+
"crapi/gateway-service"
13+
"crapi/mailhog"
14+
)
15+
16+
for image in "${ALL_IMAGES[@]}"; do
17+
docker push $image:$VERSION
18+
done
19+

0 commit comments

Comments
 (0)