diff --git a/.circleci/config.yml b/.circleci/config.yml index 669b8910..158e9466 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,6 +16,7 @@ workflows: # mapping: | op-conductor-mon/.* run-build-op-conductor-mon true + op-signer/.* run-build-op-signer true op-ufm/.* run-build-op-ufm true proxyd/.* run-build-proxyd true .circleci/.* run-all true diff --git a/.circleci/continue_config.yml b/.circleci/continue_config.yml index 92822c07..0d39d44e 100644 --- a/.circleci/continue_config.yml +++ b/.circleci/continue_config.yml @@ -10,6 +10,9 @@ parameters: run-build-op-conductor-mon: type: boolean default: false + run-build-op-signer: + type: boolean + default: false run-build-op-ufm: type: boolean default: false @@ -76,6 +79,7 @@ jobs: command: | echo "Configuration Results:" echo "run-build-op-conductor-mon: << pipeline.parameters.run-build-op-conductor-mon >>" + echo "run-build-op-signer: << pipeline.parameters.run-build-op-signer >>" echo "run-build-op-ufm: << pipeline.parameters.run-build-op-ufm >>" echo "run-build-proxyd: << pipeline.parameters.run-build-proxyd >>" echo "run-all: << pipeline.parameters.run-all >>" @@ -100,6 +104,12 @@ jobs: echo "op-conductor-mon tag regex match: false" fi + if [[ $CURRENT_TAG =~ ^op-signer/v.* ]]; then + echo "op-signer tag regex match: true" + else + echo "op-signer tag regex match: false" + fi + if [[ $CURRENT_TAG =~ ^op-ufm/v.* ]]; then echo "op-ufm tag regex match: true" else @@ -408,6 +418,22 @@ workflows: docker_name: op-conductor-mon docker_tags: <>,<> docker_context: . + op-signer: + when: + or: [<< pipeline.parameters.run-build-op-signer >>, << pipeline.parameters.run-all >>] + jobs: + - go-lint: + name: op-signer-lint + module: op-signer + - go-test: + name: op-signer-tests + module: op-signer + - docker-build: + name: op-signer-docker-build + docker_file: op-signer/Dockerfile + docker_name: op-signer + docker_tags: <>,<> + docker_context: . op-ufm: when: or: [<< pipeline.parameters.run-build-op-ufm >>, << pipeline.parameters.run-all >>] @@ -455,6 +481,38 @@ workflows: only: /^(proxyd|ufm-[a-z0-9\-]*|op-[a-z0-9\-]*)\/v.*/ branches: ignore: /.*/ + - docker-build: + name: op-signer-docker-build + filters: + tags: + only: /^op-signer\/v.*/ + docker_name: op-signer + docker_tags: <> + docker_context: . + docker_file: op-signer/Dockerfile + context: + - oplabs-gcr-release + requires: + - hold + - docker-publish: + name: op-signer-docker-publish + docker_name: op-signer + docker_tags: <> + context: + - oplabs-gcr-release + requires: + - op-signer-docker-build + - docker-tag-op-stack-release: + name: docker-tag-op-signer-release + filters: + tags: + only: /^op-signer\/v.*/ + branches: + ignore: /.*/ + context: + - oplabs-gcr-release + requires: + - op-signer-docker-publish - docker-build: name: op-ufm-docker-build filters: