Skip to content

Commit cf4eca1

Browse files
author
James Lee
committed
add deployment
1 parent 89e4fac commit cf4eca1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.circleci/config.yml

+8
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@ jobs:
1919
command: |
2020
docker-compose up -d
2121
docker-compose run dockerapp python test.py
22+
- deploy:
23+
name: Push application Docker image
24+
command: |
25+
docker login -e $DOCKER_HUB_EMAIL -u $DOCKER_HUB_USER_ID -p $DOCKER_HUB_PWD
26+
docker tag dockerapp_dockerapp $DOCKER_HUB_USER_ID/dockerapp:$CIRCLE_SHA1
27+
docker tag dockerapp_dockerapp $DOCKER_HUB_USER_ID/dockerapp:latest
28+
docker push $DOCKER_HUB_USER_ID/dockerapp:$CIRCLE_SHA1
29+
docker push $DOCKER_HUB_USER_ID/dockerapp:latest

0 commit comments

Comments
 (0)