File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 2222 # unit tests
2323 - run : docker run gadicc/diffusers-api conda run --no-capture -n xformers pytest --cov=. --cov-report=xml --ignore=diffusers
2424
25+ # push for non-semver branches (e.g. dev, feature branches)
26+ - run :
27+ name : Push to hub on branches not handled by semantic-release
28+ command : |
29+ SEMVER_BRANCHES=$(cat release.config.js | sed 's/module.exports = //' | sed 's/\/\/.*//' | jq .branches[])
30+
31+ if [[ ${SEMVER_BRANCHES[@]} =~ "$CIRCLE_BRANCH" ]] ; then
32+ echo "Skipping because '\$CIRCLE_BRANCH' == '$CIRCLE_BRANCH'"
33+ echo "Semantic-release will handle the publishing"
34+ else
35+ echo "docker push gadicc/diffusers-api:$CIRCLE_BRANCH"
36+ docker push gadicc/diffusers-api:$CIRCLE_BRANCH
37+ echo "Skipping integration tests"
38+ circleci-agent step halt
39+ fi
40+
2541 # needed for later "apt install" steps
2642 - run : sudo apt-get update
2743
You can’t perform that action at this time.
0 commit comments