Commit 4281f2a9 authored by Denis Konovalyenko's avatar Denis Konovalyenko

Okapi project pipeline triggered.

parent c4edb8b5
......@@ -11,6 +11,10 @@ variables:
# OPENSSL_CLI_OPTS: "enc aes-256-cbc -K ${OPENSSL_ENC_KEY} -iv ${OPENSSL_ENC_IV}"
GPG_CONF: ".gnupg/gpg.conf"
GPG_AGENT_CONF: ".gnupg/gpg-agent.conf"
OKAPI_PROJECT_ID: "9038636"
# TODO: Replace 2 lines below with appropriate ("dev") values when everything is get ready.
OKAPI_SNAPSHOTS_BRANCH: "gitlab-integration"
SNAPSHOTS_BRANCH: "gitlab-integration"
# CI_DEBUG_TRACE: "true" # WARNING: all secret variables will be exposed to a job output!
verification:
......@@ -32,6 +36,7 @@ verification:
- ${HOME}/target/
policy: pull
script:
# TODO: make a decision on whether we are going to push to the repo the encrypted gpg key and decrypt it before importing.
# - openssl ${OPENSSL_CLI_OPTS} -d -in ${CI_GITLAB_PATH}/code-signing-key.asc.enc -out ${CI_GITLAB_PATH}/code-signing-key.asc
# - gpg --fast-import ${CI_GITLAB_PATH}/code-signing-key.asc
- echo "${GPG_KEY}" | gpg --batch --armor --import
......@@ -42,8 +47,9 @@ verification:
snapshot:
<<: *deployment
# only:
# - dev
only:
variables:
- $SNAPSHOTS_BRANCH == $CI_COMMIT_REF_NAME
except:
- tags
- master
......@@ -63,6 +69,18 @@ release:
after_script:
- ""
snapshot-success:
<<: *status
script:
- curl -X POST -F token=${OKAPI_TRIGGER_TOKEN} -F ref=${OKAPI_SNAPSHOTS_BRANCH} https://gitlab.com/api/v4/projects/${OKAPI_PROJECT_ID}/trigger/pipeline
only:
variables:
- $SNAPSHOTS_BRANCH == $CI_COMMIT_REF_NAME
except:
- tags
- master
when: on_success
success:
<<: *status
script:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment