mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-28 23:20:09 +03:00
31 lines
988 B
YAML
31 lines
988 B
YAML
version: 2
|
|
jobs:
|
|
dockerhubuploadrelease:
|
|
machine: true
|
|
steps:
|
|
- checkout
|
|
- run: docker build -f docker/Dockerfile --label gitsha1=${CIRCLE_SHA1} -t matrixdotorg/synapse:${CIRCLE_TAG} .
|
|
- run: docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD
|
|
- run: docker push matrixdotorg/synapse:${CIRCLE_TAG}
|
|
dockerhubuploadlatest:
|
|
machine: true
|
|
steps:
|
|
- checkout
|
|
- run: docker build -f docker/Dockerfile --label gitsha1=${CIRCLE_SHA1} -t matrixdotorg/synapse:latest .
|
|
- run: docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD
|
|
- run: docker push matrixdotorg/synapse:latest
|
|
|
|
workflows:
|
|
version: 2
|
|
build:
|
|
jobs:
|
|
- dockerhubuploadrelease:
|
|
filters:
|
|
tags:
|
|
only: /v[0-9].[0-9]+.[0-9]+.*/
|
|
branches:
|
|
ignore: /.*/
|
|
- dockerhubuploadlatest:
|
|
filters:
|
|
branches:
|
|
only: master
|