diff --git a/.circleci/config.yml b/.circleci/config.yml index f632b2c..e8c32d5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,21 +3,37 @@ version: 2.1 orbs: qqq-orb: kingsrook/qqq-orb@0.5.0 +commands: + configure-package-install: + steps: + - run: + name: Keep package installation unattended + command: | + # These build machines are discarded after the job; without this, + # needrestart blocks apt in "Install Java" until the 10m no-output timeout. + sudo install -d /etc/needrestart/conf.d + printf '%s\n' '$nrconf{restart} = "l";' | sudo tee /etc/needrestart/conf.d/99-qqq-ci.conf >/dev/null + + workflows: test_only: jobs: - qqq-orb/mvn_test_only: + pre-steps: + - configure-package-install context: [ qqq-maven-registry-credentials ] filters: branches: - ignore: /(develop|main|release/.*|hotfix/.*|integration.*)/ + ignore: /(develop|main|release/.*|integration.*)/ tags: only: [] publish_snapshot: jobs: - qqq-orb/mvn_publish: + pre-steps: + - configure-package-install context: [ qqq-maven-registry-credentials ] branch_type: snapshot filters: @@ -28,6 +44,8 @@ workflows: publish_release_candidate: jobs: - qqq-orb/mvn_publish: + pre-steps: + - configure-package-install context: [ qqq-maven-registry-credentials ] branch_type: release_candidate filters: @@ -38,6 +56,8 @@ workflows: publish_release: jobs: - qqq-orb/mvn_publish: + pre-steps: + - configure-package-install context: [ qqq-maven-registry-credentials ] branch_type: release filters: @@ -45,13 +65,3 @@ workflows: only: [ main ] tags: only: [ /v.*/ ] - - publish_hotfix_release: - jobs: - - qqq-orb/mvn_publish: - context: [ qqq-maven-registry-credentials ] - branch_type: hotfix - filters: - branches: - only: - - /hotfix\/.*/