Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Switch to moztravis docker hub account
Browse files Browse the repository at this point in the history
  • Loading branch information
pmac committed Jan 26, 2016
1 parent a8c1d04 commit 9532dc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -12,7 +12,7 @@ env:
# Docker
- DOCKER_REPOSITORY=mozorg/basket
- DOCKER_EMAIL=foo@example.com
- DOCKER_USERNAME=mozjenkins
- DOCKER_USERNAME=moztravis
# MySQL
- MYSQL_DATABASE=basket
- MYSQL_ALLOW_EMPTY_PASSWORD=1
Expand Down
8 changes: 4 additions & 4 deletions bin/deploy-travis.sh
@@ -1,9 +1,9 @@
#!/bin/bash
set -e
set -ex

docker login -e "$DOCKER_EMAIL" -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
docker push ${DOCKER_REPOSITORY}:${TRAVIS_COMMIT}
docker tag -f ${DOCKER_REPOSITORY}:${TRAVIS_COMMIT} ${DOCKER_REPOSITORY}:last_successful_build
docker push ${DOCKER_IMAGE_TAG}
docker tag -f ${DOCKER_IMAGE_TAG} ${DOCKER_REPOSITORY}:last_successful_build
docker push ${DOCKER_REPOSITORY}:last_successful_build

# Install deis client
Expand All @@ -15,7 +15,7 @@ for region in us-west eu-west; do
DEIS_CONTROLLER=https://deis.${region}.moz.works
NR_APP="${DEIS_APP}-${region}"
./deis login $DEIS_CONTROLLER --username $DEIS_USERNAME --password $DEIS_PASSWORD
./deis pull ${DOCKER_REPOSITORY}:${TRAVIS_COMMIT} -a $DEIS_APP
./deis pull ${DOCKER_IMAGE_TAG} -a $DEIS_APP
curl -H "x-api-key:$NEWRELIC_API_KEY" \
-d "deployment[app_name]=$NR_APP" \
-d "deployment[revision]=$TRAVIS_COMMIT" \
Expand Down

0 comments on commit 9532dc2

Please sign in to comment.