Skip to content

Dev circleci2 to dev #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2

jobs:
build:
machine: true
environment:
DOCKER_REPO: appiriodevops/tc-database-scripts
steps:
- checkout
- run: .deploy/dockerpush.sh

workflows:
version: 2
build-and-deploy:
jobs:
- build:
filters:
branches:
only: [master,dev-circleci2]
9 changes: 5 additions & 4 deletions .deploy/dockerpush.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ docker build -t $DOCKER_REPO:$CIRCLE_SHA1 .

echo "Logging into docker"
echo "############################"
docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASSWD
#docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASSWD
docker login -u $DOCKER_USER -p $DOCKER_PASSWD

echo "Pushing docker image"
echo "############################"
docker push $DOCKER_REPO:$CIRCLE_SHA1
docker tag $DOCKER_REPO:$CIRCLE_SHA1 $DOCKER_REPO:latest
docker push $DOCKER_REPO:latest
#docker push $DOCKER_REPO:$CIRCLE_SHA1
#docker tag $DOCKER_REPO:$CIRCLE_SHA1 $DOCKER_REPO:latest
#docker push $DOCKER_REPO:latest
15 changes: 0 additions & 15 deletions circle.yml

This file was deleted.