Automatic releases of "develop" to "mythril/myth-dev" DockerHub container

pull/642/head
Dr. Sergey Pogodin 6 years ago
parent 405f26fab8
commit 6e4ace9f73
  1. 21
      .circleci/config.yml
  2. 3
      docker_build_and_deploy.sh

@ -90,6 +90,8 @@ jobs:
command: twine upload dist/* command: twine upload dist/*
working_directory: /home/mythril working_directory: /home/mythril
# Release of the mainstream (current stable) version as mythril/myth
# container.
dockerhub_release: dockerhub_release:
docker: docker:
- image: docker:stable - image: docker:stable
@ -98,7 +100,18 @@ jobs:
- setup_remote_docker - setup_remote_docker
- run: - run:
name: Building Docker Image name: Building Docker Image
command: ./docker_build_and_deploy.sh command: ./docker_build_and_deploy.sh mythril/myth
# Release of the latest development version as mythril/myth-dev container.
dockerhub_dev_release:
docker:
- image: docker:stable
steps:
- checkout
- setup_remote_docker
- run:
name: Building Docker Image
command: ./docker_build_and_deploy.sh mythril/myth-dev
workflows: workflows:
version: 2 version: 2
@ -116,6 +129,12 @@ workflows:
only: /v[0-9]+(\.[0-9]+)*/ only: /v[0-9]+(\.[0-9]+)*/
requires: requires:
- test - test
- dockerhub_dev_release:
filters:
branches:
only: develop
requires:
- test
- dockerhub_release: - dockerhub_release:
filters: filters:
branches: branches:

@ -1,7 +1,8 @@
#!/bin/sh #!/bin/sh
set -eo pipefail set -eo pipefail
NAME=mythril/myth NAME=$1
VERSION_TAG=${NAME}:${CIRCLE_TAG#?} VERSION_TAG=${NAME}:${CIRCLE_TAG#?}
LATEST_TAG=${NAME}:latest LATEST_TAG=${NAME}:latest

Loading…
Cancel
Save