mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-30 03:46:09 -05:00
f817fc9ad5
Python 3.7 is apparently faster than 3.6, and should be mature enough.
34 lines
1.2 KiB
YAML
34 lines
1.2 KiB
YAML
version: 2
|
|
jobs:
|
|
dockerhubuploadrelease:
|
|
machine: true
|
|
steps:
|
|
- checkout
|
|
- run: docker build -f docker/Dockerfile --label gitsha1=${CIRCLE_SHA1} -t matrixdotorg/synapse:${CIRCLE_TAG} -t matrixdotorg/synapse:${CIRCLE_TAG}-py3 .
|
|
- run: docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD
|
|
- run: docker push matrixdotorg/synapse:${CIRCLE_TAG}
|
|
- run: docker push matrixdotorg/synapse:${CIRCLE_TAG}-py3
|
|
dockerhubuploadlatest:
|
|
machine: true
|
|
steps:
|
|
- checkout
|
|
- run: docker build -f docker/Dockerfile --label gitsha1=${CIRCLE_SHA1} -t matrixdotorg/synapse:latest -t matrixdotorg/synapse:latest-py3 .
|
|
- run: docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_PASSWORD
|
|
- run: docker push matrixdotorg/synapse:latest
|
|
- run: docker push matrixdotorg/synapse:latest-py3
|
|
|
|
workflows:
|
|
version: 2
|
|
build:
|
|
jobs:
|
|
- dockerhubuploadrelease:
|
|
filters:
|
|
tags:
|
|
only: /v[0-9].[0-9]+.[0-9]+.*/
|
|
branches:
|
|
ignore: /.*/
|
|
- dockerhubuploadlatest:
|
|
filters:
|
|
branches:
|
|
only: master
|