summaryrefslogtreecommitdiff
path: root/.cirrus.yml
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2020-01-17 09:41:40 -0600
committerChris Evich <cevich@redhat.com>2020-01-17 15:41:33 -0500
commit9be6f30a42a8737f7e853dc3333b627242a962ab (patch)
tree81de580baddb004e7cb18f1111f65577f13cdef8 /.cirrus.yml
parentab7e1a4c400f4bdb47ab49a2a0c8ef9508c68e02 (diff)
downloadpodman-9be6f30a42a8737f7e853dc3333b627242a962ab.tar.gz
podman-9be6f30a42a8737f7e853dc3333b627242a962ab.tar.bz2
podman-9be6f30a42a8737f7e853dc3333b627242a962ab.zip
post-process swagger yaml for publish
Signed-off-by: baude <bbaude@redhat.com> Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to '.cirrus.yml')
-rw-r--r--.cirrus.yml23
1 files changed, 8 insertions, 15 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index abf3d0dd8..fb6dd4cdb 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -660,24 +660,17 @@ upload_snap_task:
- 'cd contrib/snapcraft && snapcraft && snapcraft push *.snap --release edge'
-test_docs_task:
+docs_task:
+
+ # Only run this for PRs on mention, but always run after merge
+ only_if: $CIRRUS_CHANGE_MESSAGE =~ '.*CI:DOCS.*' || $CIRRUS_BRANCH == $DEST_BRANCH
- only_if: >-
- $CIRRUS_BRANCH != $DEST_BRANCH &&
- $CIRRUS_CHANGE_MESSAGE =~ '.*CI:DOCS.*'
depends_on:
- "gating"
- - "vendor"
- #- "test_docs"
- #- "varlink_api"
- #- "build_each_commit"
- stub_script: '/bin/true'
-
-#publish_docs_task:
-#
-# only_if: $CIRRUS_BRANCH == $DEST_BRANCH &&
-# $CIRRUS_TAG =~ '^v[0-9]\.[0-9]\.[0-9]$'
+ script:
+ - "$SCRIPT_BASE/build_swagger.sh |& ${TIMESTAMP}"
+ - "$SCRIPT_BASE/upload_release_archive.sh |& ${TIMESTAMP}"
# Post message to IRC if everything passed PR testing
@@ -706,7 +699,7 @@ success_task:
- "test_building_snap"
- "upload_snap"
- "verify_test_built_images"
- - "test_docs"
+ - "docs"
env:
CIRRUS_WORKING_DIR: "/usr/src/libpod"