2018-10-28 12:06:04 +01:00
|
|
|
version: 2
|
|
|
|
jobs:
|
2019-06-03 08:32:20 +02:00
|
|
|
fast_tests:
|
|
|
|
machine:
|
2024-12-03 06:27:20 +01:00
|
|
|
image: ubuntu-2004:2024.11.1
|
2019-06-03 08:32:20 +02:00
|
|
|
steps:
|
2018-10-28 12:06:04 +01:00
|
|
|
- checkout
|
2019-06-03 08:32:20 +02:00
|
|
|
- run:
|
|
|
|
command: |
|
2021-11-23 05:17:29 +01:00
|
|
|
cd .circleci && ./run-tests.sh "Fast=Fast|ThirdParty=ThirdParty" && ./can-build.sh
|
2019-06-03 08:32:20 +02:00
|
|
|
selenium_tests:
|
|
|
|
machine:
|
2024-12-03 06:27:20 +01:00
|
|
|
image: ubuntu-2004:2024.11.1
|
2019-06-03 08:32:20 +02:00
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
command: |
|
|
|
|
cd .circleci && ./run-tests.sh "Selenium=Selenium"
|
|
|
|
integration_tests:
|
|
|
|
machine:
|
2024-12-03 06:27:20 +01:00
|
|
|
image: ubuntu-2004:2024.11.1
|
2019-06-03 08:32:20 +02:00
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
command: |
|
|
|
|
cd .circleci && ./run-tests.sh "Integration=Integration"
|
2021-11-12 14:25:36 +01:00
|
|
|
trigger_docs_build:
|
|
|
|
machine:
|
2024-12-03 06:27:20 +01:00
|
|
|
image: ubuntu-2004:2024.11.1
|
2021-11-12 14:25:36 +01:00
|
|
|
steps:
|
2021-11-12 14:32:14 +01:00
|
|
|
- run:
|
|
|
|
command: |
|
2022-02-21 03:04:15 +01:00
|
|
|
curl -X POST -H "Authorization: token $GH_PAT" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/btcpayserver/btcpayserver-doc/dispatches --data '{"event_type": "build_docs"}'
|
2018-11-23 03:21:01 +01:00
|
|
|
# publish jobs require $DOCKERHUB_REPO, $DOCKERHUB_USER, $DOCKERHUB_PASS defined
|
2023-12-22 06:23:04 +01:00
|
|
|
docker:
|
|
|
|
docker:
|
|
|
|
- image: cimg/base:stable
|
2018-11-23 03:21:01 +01:00
|
|
|
steps:
|
2023-12-22 06:23:04 +01:00
|
|
|
- setup_remote_docker
|
2022-02-21 03:04:15 +01:00
|
|
|
- checkout
|
2018-11-23 03:21:01 +01:00
|
|
|
- run:
|
|
|
|
command: |
|
|
|
|
LATEST_TAG=${CIRCLE_TAG:1} #trim v from tag
|
2022-11-22 13:37:07 +01:00
|
|
|
GIT_COMMIT=$(git rev-parse HEAD)
|
2018-11-23 03:21:01 +01:00
|
|
|
#
|
2023-12-22 06:23:04 +01:00
|
|
|
docker login --username=$DOCKERHUB_USER --password=$DOCKERHUB_PASS
|
|
|
|
docker buildx create --use
|
|
|
|
DOCKER_BUILDX_OPTS="--platform linux/amd64,linux/arm64,linux/arm/v7 --build-arg GIT_COMMIT=${GIT_COMMIT} --push"
|
|
|
|
docker buildx build $DOCKER_BUILDX_OPTS -t $DOCKERHUB_REPO:$LATEST_TAG .
|
|
|
|
docker buildx build $DOCKER_BUILDX_OPTS -t $DOCKERHUB_REPO:$LATEST_TAG-altcoins --build-arg CONFIGURATION_NAME=Altcoins-Release .
|
2018-10-28 12:06:04 +01:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build_and_test:
|
|
|
|
jobs:
|
2019-06-03 08:32:20 +02:00
|
|
|
- fast_tests
|
|
|
|
- selenium_tests
|
|
|
|
- integration_tests
|
2018-11-23 03:21:01 +01:00
|
|
|
publish:
|
|
|
|
jobs:
|
2021-11-12 14:25:36 +01:00
|
|
|
- trigger_docs_build:
|
|
|
|
filters:
|
|
|
|
branches:
|
|
|
|
ignore: /.*/
|
|
|
|
# only act on version tags
|
|
|
|
tags:
|
|
|
|
only: /(v[1-9]+(\.[0-9]+)*(-[a-z0-9-]+)?)|(v[a-z0-9-]+)/
|
2023-12-22 06:23:04 +01:00
|
|
|
- docker:
|
2018-11-23 03:21:01 +01:00
|
|
|
filters:
|
|
|
|
# ignore any commit on any branch by default
|
|
|
|
branches:
|
|
|
|
ignore: /.*/
|
2020-05-27 16:56:32 +02:00
|
|
|
# only act on version tags v1.0.0.88 or v1.0.2-1
|
2019-11-15 04:00:39 +01:00
|
|
|
# OR feature tags like vlndseedbackup
|
2020-08-06 08:42:11 +02:00
|
|
|
# OR features on specific versions like v1.0.0.88-lndseedbackup-1
|
2018-11-23 03:21:01 +01:00
|
|
|
tags:
|
2020-08-06 08:42:11 +02:00
|
|
|
only: /(v[1-9]+(\.[0-9]+)*(-[a-z0-9-]+)?)|(v[a-z0-9-]+)/
|