Skip to content

Commit

Permalink
fix(ci): trigger maintenance snapshot version (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
tasso94 authored Jul 26, 2023
1 parent 338fc3c commit 1772004
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/build-and-test-ee.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
20 changes: 17 additions & 3 deletions pipeline.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1772004

Please sign in to comment.