From 0a175d9c0b64305db92cf202d5eef3a59e9387a5 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Sat, 17 Dec 2022 16:31:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20.gitlab-ci.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 20 +------------------- .gitlab-ci.yml | 17 ----------------- 2 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 .gitlab-ci.yml diff --git a/.drone.yml b/.drone.yml index 62ba031..9a84ac3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,25 +4,7 @@ name: haiti-framework steps: - - name: publish external bom - image: maven:3.8.6-openjdk-11 - volumes: - - name: m2 - path: /root/.m2/repository - environment: - GPG_PRIVATE_KEY: - from_secret: GPG_PRIVATE_KEY - MAVEN_SETTINGS: - from_secret: MAVEN_SETTINGS - GPG_PASSPHRASE: - from_secret: GPG_PASSPHRASE - commands: - - echo "$GPG_PRIVATE_KEY" >> gpg.key - - echo "$MAVEN_SETTINGS" >> maven-settings.xml - - gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import gpg.key - - mvn --settings maven-settings.xml -U -P ossrh,release clean deploy - - - name: publish + - name: publish maven central image: maven:3.8.6-openjdk-11 volumes: - name: m2 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 65f01de..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,17 +0,0 @@ -image: maven:3.8.4-openjdk-11 -variables: - MAVEN_OPTS: "-Dmaven.repo.local=./.m2/repository" - -stages: - - deploy - -deploy: - stage: deploy - only: - - /^v.*$/ - except: - - branches - before_script: - - gpg --pinentry-mode loopback --passphrase $GPG_PASSPHRASE --import $GPG_PRIVATE_KEY - script: - - 'mvn --settings $MAVEN_SETTINGS -U -P ossrh,release clean deploy' \ No newline at end of file