From 17720043de930b0cab699671b6025182d9b79c1c Mon Sep 17 00:00:00 2001 From: tasso94 <3015690+tasso94@users.noreply.github.com> Date: Wed, 26 Jul 2023 11:52:51 +0200 Subject: [PATCH] fix(ci): trigger maintenance snapshot version (#277) related to camunda/camunda-bpm-platform#3515 --- .github/workflows/build-and-test-ee.yml | 11 ++++++++++- pipeline.sh | 20 +++++++++++++++++--- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-test-ee.yml b/.github/workflows/build-and-test-ee.yml index 90467b50..90771acc 100644 --- a/.github/workflows/build-and-test-ee.yml +++ b/.github/workflows/build-and-test-ee.yml @@ -1,5 +1,14 @@ name: Build and Test EE -on: [pull_request, workflow_dispatch] + +on: + workflow_dispatch: + inputs: + version: + description: 'Camunda enterprise version to be tested' + snapshot: + description: 'Whether the version is a snapshot' + pull_request: + jobs: build-and-test-ee: if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'workflow_dispatch' diff --git a/pipeline.sh b/pipeline.sh index 06cc6879..fc110e82 100755 --- a/pipeline.sh +++ b/pipeline.sh @@ -1,10 +1,24 @@ -#!/bin/bash - +#!/bin/bash -ex + +if [ -z "$SNAPSHOT" ]; then + SNAPSHOT_ARGUMENT="" +else + SNAPSHOT_ARGUMENT="--build-arg SNAPSHOT=${SNAPSHOT}" +fi + +if [ -z "$VERSION" ]; then + VERSION_ARGUMENT="" +else + VERSION_ARGUMENT="--build-arg VERSION=${VERSION}" +fi + docker build . \ -t camunda/camunda-bpm-platform:${DISTRO} \ --build-arg DISTRO=${DISTRO} \ --build-arg EE=${EE} \ --build-arg USER=${NEXUS_USER} \ - --build-arg PASSWORD=${NEXUS_PASS} + --build-arg PASSWORD=${NEXUS_PASS} \ + ${VERSION_ARGUMENT} \ + ${SNAPSHOT_ARGUMENT} ./test/test.sh