forked from openshift/assisted-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_deploy.sh
executable file
·35 lines (27 loc) · 1.47 KB
/
build_deploy.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
#!/bin/bash
# required for `skipper` according to
# https://github.com/Stratoscale/skipper/blob/upstream/README.md#python3-environment
export LC_ALL="en_US.UTF-8"
export LANG="en_US.UTF-8"
TAG=$(git rev-parse --short=7 HEAD)
ASSISTED_SERVICE_IMAGE="quay.io/app-sre/assisted-service"
SERVICE="${ASSISTED_SERVICE_IMAGE}:latest" skipper make update-minimal
docker tag "${ASSISTED_SERVICE_IMAGE}:latest" "${ASSISTED_SERVICE_IMAGE}:${TAG}"
#ASSISTED_SERVICE_BUILD_IMAGE="quay.io/app-sre/assisted-service-build"
#
#docker build -t "${ASSISTED_SERVICE_BUILD_IMAGE}:latest" -f Dockerfile.assisted-service-build .
#docker tag "${ASSISTED_SERVICE_BUILD_IMAGE}:latest" "${ASSISTED_SERVICE_BUILD_IMAGE}:${TAG}"
#OBJ_EXPIRER_IMAGE="quay.io/app-sre/s3-object-expirer"
#
#docker build -t "${OBJ_EXPIRER_IMAGE}:latest" -f Dockerfile.s3-object-expirer .
#docker tag "${OBJ_EXPIRER_IMAGE}:latest" "${OBJ_EXPIRER_IMAGE}:${TAG}"
DOCKER_CONF="${PWD}/.docker"
mkdir -p "${DOCKER_CONF}"
docker --config="${DOCKER_CONF}" login -u="${QUAY_USER}" -p="${QUAY_TOKEN}" quay.io
docker --config="${DOCKER_CONF}" push "${ASSISTED_SERVICE_IMAGE}:latest"
docker --config="${DOCKER_CONF}" push "${ASSISTED_SERVICE_IMAGE}:${TAG}"
#docker --config="${DOCKER_CONF}" push "${ASSISTED_SERVICE_BUILD_IMAGE}:latest"
#docker --config="${DOCKER_CONF}" push "${ASSISTED_SERVICE_BUILD_IMAGE}:${TAG}"
#
#docker --config="${DOCKER_CONF}" push "${OBJ_EXPIRER_IMAGE}:latest"
#docker --config="${DOCKER_CONF}" push "${OBJ_EXPIRER_IMAGE}:${TAG}"