Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
49372e0b98 |
+26
-55
@@ -1,60 +1,31 @@
|
|||||||
|
# Use the latest 2.1 version of CircleCI pipeline process engine.
|
||||||
|
# See: https://circleci.com/docs/reference/configuration-reference/
|
||||||
version: 2.1
|
version: 2.1
|
||||||
|
|
||||||
orbs:
|
# Define a job to be invoked later in a workflow.
|
||||||
qqq-orb: kingsrook/qqq-orb@0.6.9
|
# See: https://circleci.com/docs/guides/orchestrate/jobs-steps/#jobs-overview & https://circleci.com/docs/reference/configuration-reference/#jobs
|
||||||
|
jobs:
|
||||||
|
say-hello:
|
||||||
|
# Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub.
|
||||||
|
# See: https://circleci.com/docs/guides/execution-managed/executor-intro/ & https://circleci.com/docs/reference/configuration-reference/#executor-job
|
||||||
|
docker:
|
||||||
|
# Specify the version you desire here
|
||||||
|
# See: https://circleci.com/developer/images/image/cimg/base
|
||||||
|
- image: cimg/base:current
|
||||||
|
|
||||||
commands:
|
# Add steps to the job
|
||||||
configure-package-install:
|
# See: https://circleci.com/docs/guides/orchestrate/jobs-steps/#steps-overview & https://circleci.com/docs/reference/configuration-reference/#steps
|
||||||
steps:
|
steps:
|
||||||
- run:
|
# Checkout the code as the first step.
|
||||||
name: Keep package installation unattended
|
- checkout
|
||||||
command: |
|
- run:
|
||||||
# These build machines are discarded after the job.
|
name: "Say hello"
|
||||||
sudo install -d /etc/needrestart/conf.d
|
command: "echo Hello, World!"
|
||||||
printf '%s\n' '$nrconf{restart} = "l";' | sudo tee /etc/needrestart/conf.d/99-qqq-ci.conf >/dev/null
|
|
||||||
|
|
||||||
|
# Orchestrate jobs using workflows
|
||||||
|
# See: https://circleci.com/docs/guides/orchestrate/workflows/ & https://circleci.com/docs/reference/configuration-reference/#workflows
|
||||||
workflows:
|
workflows:
|
||||||
test_only:
|
say-hello-workflow: # This is the name of the workflow, feel free to change it to better match your workflow.
|
||||||
jobs:
|
# Inside the workflow, you define the jobs you want to run.
|
||||||
- qqq-orb/mvn_test_only:
|
jobs:
|
||||||
pre-steps:
|
- say-hello
|
||||||
- configure-package-install
|
|
||||||
context: [qqq-maven-registry-credentials]
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
ignore: /(develop|release\/.*)/
|
|
||||||
|
|
||||||
publish_snapshot:
|
|
||||||
jobs:
|
|
||||||
- qqq-orb/mvn_publish:
|
|
||||||
pre-steps:
|
|
||||||
- configure-package-install
|
|
||||||
context: [qqq-maven-registry-credentials]
|
|
||||||
branch_type: snapshot
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
only: [develop]
|
|
||||||
|
|
||||||
publish_release_candidate:
|
|
||||||
jobs:
|
|
||||||
- qqq-orb/mvn_publish:
|
|
||||||
pre-steps:
|
|
||||||
- configure-package-install
|
|
||||||
context: [qqq-maven-registry-credentials]
|
|
||||||
branch_type: release_candidate
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
only: [/release\/.*/]
|
|
||||||
|
|
||||||
publish_release:
|
|
||||||
jobs:
|
|
||||||
- qqq-orb/mvn_publish:
|
|
||||||
pre-steps:
|
|
||||||
- configure-package-install
|
|
||||||
context: [qqq-maven-registry-credentials]
|
|
||||||
branch_type: release
|
|
||||||
filters:
|
|
||||||
branches:
|
|
||||||
ignore: /.*/
|
|
||||||
tags:
|
|
||||||
only: [/^v\d+\.\d+\.\d+$/]
|
|
||||||
Reference in new issue
Block a user