Automatic DockerHub releases (version bumped to v0.18.1 to test it)

pull/273/head v0.18.1
Dr. Sergey Pogodin 7 years ago
parent 6230eef77b
commit ad31fbec94
  1. 19
      .circleci/config.yml
  2. 6
      docker_build_and_deploy.sh
  3. 2
      setup.py

@ -80,6 +80,16 @@ jobs:
command: twine upload dist/* command: twine upload dist/*
working_directory: /home/mythril working_directory: /home/mythril
dockerhub_deploy:
docker:
- image: docker:stable
steps:
- checkout
- setup_remote_docker
- run:
name: Building Docker Image
command: ./docker_build_and_deploy.sh
workflows: workflows:
version: 2 version: 2
build: build:
@ -96,3 +106,12 @@ workflows:
only: /v[0-9]+(\.[0-9]+)*/ only: /v[0-9]+(\.[0-9]+)*/
requires: requires:
- test - test
- dockerhub_release:
filters:
branches:
ignore: /.*/
tags:
only: /v[0-9]+(\.[0-9]+)*/
requires:
- test
- deploy

@ -0,0 +1,6 @@
#!/bin/sh
VERSION=${CIRCLE_TAG#?}
docker build -t mythril/mythril:${VERSION} .
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
docker push mythril/mythril:${VERSION}

@ -6,7 +6,7 @@ import os
# Package version (vX.Y.Z). It must match git tag being used for CircleCI # Package version (vX.Y.Z). It must match git tag being used for CircleCI
# deployment; otherwise the build will failed. # deployment; otherwise the build will failed.
VERSION = "v0.18.0" VERSION = "v0.18.1"
class VerifyVersionCommand(install): class VerifyVersionCommand(install):

Loading…
Cancel
Save