-
Notifications
You must be signed in to change notification settings - Fork 1
/
deploy.sh
executable file
·24 lines (17 loc) · 1003 Bytes
/
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
#!/usr/bin/env bash
set -x -e
DOCKER_COMPOSE_PREFIX=$(basename $(pwd))
### Tag the docker images
docker tag ${DOCKER_COMPOSE_PREFIX}_udacity-finding-donors-server quay.io/jerowe/udacity-finding-donors-server:latest
docker tag ${DOCKER_COMPOSE_PREFIX}_udacity-finding-donors-client quay.io/jerowe/udacity-finding-donors-client:latest
docker tag ${DOCKER_COMPOSE_PREFIX}_udacity-finding-donors-server quay.io/jerowe/udacity-finding-donors-server:1.7
docker tag ${DOCKER_COMPOSE_PREFIX}_udacity-finding-donors-client quay.io/jerowe/udacity-finding-donors-client:1.7
# Docker login
#echo ${QUAY_API_TOKEN} | docker login quay.io -u jerowe --password-stdin
docker login quay.io -u jerowe -p ${QUAY_API_TOKEN}
# Push to quay
docker push quay.io/jerowe/udacity-finding-donors-server:latest
docker push quay.io/jerowe/udacity-finding-donors-client:latest
# Push versioned to quay
docker push quay.io/jerowe/udacity-finding-donors-server:1.7
docker push quay.io/jerowe/udacity-finding-donors-client:1.7