update ci

This commit is contained in:
felinae98 2021-09-28 12:37:02 +08:00
parent 0959746063
commit 878b6fa32b
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610

View File

@ -18,8 +18,6 @@ workflows:
tags: tags:
only: /.*/ only: /.*/
- build-publish: - build-publish:
context:
- docker
requires: requires:
- test - test
filters: filters:
@ -27,6 +25,21 @@ workflows:
ignore: /.*/ ignore: /.*/
tags: tags:
only: /^v.*/ 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: jobs:
test: test:
@ -63,9 +76,4 @@ jobs:
- run: - run:
command: poetry publish -u $PYPI_USERNAME -p $PYPI_PASSWORD command: poetry publish -u $PYPI_USERNAME -p $PYPI_PASSWORD
name: publish to pypi name: publish to pypi
- docker/publish:
image: $CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME
update-description: true
docker-username: $DOCKERHUB_USERNAME
docker-password: $DOCKERHUB_PASSWORD