Skip to content

Commit

Permalink
CI: Support check mode for package promotion
Browse files Browse the repository at this point in the history
  • Loading branch information
markgoddard committed Oct 23, 2023
1 parent 75b07e5 commit 5afe4b1
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/package-promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
required: false
description: Branch of StackHPC Kayobe configuration to use
default: stackhpc/wallaby
check-mode:
description: Check mode
type: boolean
required: false
default: false

env:
ANSIBLE_FORCE_COLOR: True
Expand Down Expand Up @@ -39,11 +44,18 @@ jobs:

- name: Promote package repositories in Ark to release
run: |
args=""
if [[ $CHECK_MODE = true ]]; then
args="$args --check --diff"
fi
source venv/bin/activate &&
ansible-playbook -i ansible/inventory \
ansible/dev-pulp-repo-version-query-kayobe.yml \
ansible/dev-pulp-repo-promote.yml \
-e deb_package_repo_filter="'$FILTER'" \
-e rpm_package_repo_filter="'$FILTER'" \
-e kayobe_config_repo_path=./stackhpc-kayobe-config/
-e kayobe_config_repo_path=./stackhpc-kayobe-config/ \
$args
env:
FILTER: ${{ github.event.inputs.filter }}
CHECK_MODE: ${{ inputs.check-mode }}

0 comments on commit 5afe4b1

Please sign in to comment.