cci update default workflow (#816)

This commit is contained in:
dman776 2023-05-01 17:52:13 -05:00 committed by GitHub
parent baf100deed
commit 99380f59f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 3 deletions

View File

@ -6,8 +6,8 @@ version: 2.1
parameters:
action:
type: enum
enum: [nightly_build, manual_build, release_build]
default: nightly_build
enum: [no_action, nightly_build, manual_build, release_build]
default: no_action
######################################
# JOBS
@ -137,7 +137,6 @@ jobs:
name: Move SUPPORTED_DEVICES.md
command: ssh ${SSH_USER}@${SSH_HOST} "sh -c 'mv ~/SUPPORTED_DEVICES.md ${NIGHTLY_DIR}/SUPPORTED_DEVICES.md'"
afs_collector:
machine:
image: ubuntu-2004:2023.02.1
@ -146,10 +145,22 @@ jobs:
name: Run AFS collector
command: ssh ${SSH_USER}@${SSH_HOST} "sh -c '${DOWNLOADS_DOCROOT}/afs/misc/collect.py --image-url http://downloads.arednmesh.org/{base}/{target} ${DOWNLOADS_DOCROOT} ${DOWNLOADS_DOCROOT}/afs/www'"
no_action:
machine:
image: ubuntu-2004:2023.02.1
steps:
- run: echo "No action needed"
######################################
# Workflows
######################################
workflows:
no_action_default:
when:
equal: [ no_action, << pipeline.parameters.action >> ]
jobs:
- no_action
nightly_build:
when:
equal: [ nightly_build, << pipeline.parameters.action >> ]