-
Notifications
You must be signed in to change notification settings - Fork 0
/
_prod_build_and_push.sh
executable file
·23 lines (19 loc) · 1.18 KB
/
_prod_build_and_push.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
IID_FILE=image.iid
TAG=$(date +%Y%m%d%H%M%S)
buildah bud -f Containerfile.api -t maw-api --iidfile "${IID_FILE}.api"
IID=$(cat "${IID_FILE}.api")
buildah push --creds "${DH_USER}:${DH_PASS}" "${IID}" docker://aerisg222/maw-api:"${TAG}"
buildah push --creds "${DH_USER}:${DH_PASS}" "${IID}" docker://aerisg222/maw-api:latest
buildah bud -f Containerfile.auth -t maw-auth --iidfile "${IID_FILE}.auth"
IID=$(cat "${IID_FILE}.auth")
buildah push --creds "${DH_USER}:${DH_PASS}" "${IID}" docker://aerisg222/maw-auth:"${TAG}"
buildah push --creds "${DH_USER}:${DH_PASS}" "${IID}" docker://aerisg222/maw-auth:latest
buildah bud -f Containerfile.www -t maw-www --iidfile "${IID_FILE}.www"
IID=$(cat "${IID_FILE}.www")
buildah push --creds "${DH_USER}:${DH_PASS}" "${IID}" docker://aerisg222/maw-www:"${TAG}"
buildah push --creds "${DH_USER}:${DH_PASS}" "${IID}" docker://aerisg222/maw-www:latest
buildah bud -f Containerfile.cache -t maw-cache-sync --iidfile "${IID_FILE}.cache"
IID=$(cat "${IID_FILE}.cache")
buildah push --creds "${DH_USER}:${DH_PASS}" "${IID}" docker://aerisg222/maw-cache-sync:"${TAG}"
buildah push --creds "${DH_USER}:${DH_PASS}" "${IID}" docker://aerisg222/maw-cache-sync:latest