-
Notifications
You must be signed in to change notification settings - Fork 24
/
build_and_push.sh
executable file
·40 lines (26 loc) · 1.18 KB
/
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#! /bin/bash
set -xe
make webpack
PARTY_CONFIG=`readlink app/config/overrides` || echo "No config set, using base"
PARTY_CONFIG="${PARTY_CONFIG:-base}"
PARTY_THEME_FILE=`readlink app/client/styles/themes/_active.scss`
PARTY_THEME_FILE="${PARTY_THEME_FILE:-_basic.scss}"
PARTY_THEME="${PARTY_THEME_FILE//\.scss/}"
PARTY_THEME="${PARTY_THEME//_/}"
GIT_COMMIT=`git rev-parse HEAD`
REPO_BASE="cabinweekend/jitsi-party"
export DOCKER_BUILDKIT=1
docker-compose build
docker-compose push
docker tag $REPO_BASE-web:latest $REPO_BASE-web:$PARTY_CONFIG-$PARTY_THEME-$GIT_COMMIT
docker tag $REPO_BASE-web:latest $REPO_BASE-web:$PARTY_CONFIG-$PARTY_THEME-latest
docker push $REPO_BASE-web:$PARTY_CONFIG-$PARTY_THEME-$GIT_COMMIT
docker push $REPO_BASE-web:$PARTY_CONFIG-$PARTY_THEME-latest
docker tag $REPO_BASE-proxy:latest $REPO_BASE-proxy:$GIT_COMMIT
docker push $REPO_BASE-proxy:$GIT_COMMIT
docker tag $REPO_BASE-prosody:latest $REPO_BASE-prosody:$GIT_COMMIT
docker push $REPO_BASE-prosody:$GIT_COMMIT
docker tag $REPO_BASE-node:latest $REPO_BASE-node:$GIT_COMMIT
docker push $REPO_BASE-node:$GIT_COMMIT
docker tag $REPO_BASE-meet:latest $REPO_BASE-meet:$GIT_COMMIT
docker push $REPO_BASE-meet:$GIT_COMMIT