Build and push docker image to hub

pull/3946/head
Michael Kaye 2018-09-25 09:43:21 +01:00
parent 92abd3d6d6
commit 0d36fe3563
1 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,12 @@
version: 2 version: 2
jobs: jobs:
dockerhubupload:
machine: true
steps:
- checkout
- run: docker build -f docker/Dockerfile -t matrixdotorg/synapse:$CIRCLE_TAG .
- run: docker login --username matrixdotorg --password $DOCKER_HUB_PASSWORD
- run: docker push
sytestpy2: sytestpy2:
machine: true machine: true
steps: steps:
@ -131,3 +138,7 @@ workflows:
filters: filters:
branches: branches:
ignore: /develop|master|release-.*/ ignore: /develop|master|release-.*/
- dockerhub:
filters:
tags:
only: /v[0-9].[0-9]+.[0-9]+(.[0-9]+)?/