From 878b6fa32b8b92c1e038cdf63dc75116377e77be Mon Sep 17 00:00:00 2001 From: felinae98 <731499577@qq.com> Date: Tue, 28 Sep 2021 12:37:02 +0800 Subject: [PATCH] update ci --- .circleci/config.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9a8891b..6f89154 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,8 +18,6 @@ workflows: tags: only: /.*/ - build-publish: - context: - - docker requires: - test filters: @@ -27,6 +25,21 @@ workflows: ignore: /.*/ tags: only: /^v.*/ + - docker/publish: + requires: + - test + filters: + branches: + ignore: /.*/ + tags: + only: /^v.*/ + context: + - docker + image: $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME + tag: latest,${CIRCLE_TAG} + update-description: true + docker-username: $DOCKERHUB_USERNAME + docker-password: $DOCKERHUB_PASSWORD jobs: test: @@ -63,9 +76,4 @@ jobs: - run: command: poetry publish -u $PYPI_USERNAME -p $PYPI_PASSWORD name: publish to pypi - - docker/publish: - image: $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME - update-description: true - docker-username: $DOCKERHUB_USERNAME - docker-password: $DOCKERHUB_PASSWORD