-
Notifications
You must be signed in to change notification settings - Fork 223
100 lines (96 loc) · 3.55 KB
/
Copy pathbuild-and-test-ee.yml
File metadata and controls
100 lines (96 loc) · 3.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Effective 2026-04-24, we no longer publish images to a public Docker Hub.
name: Build and Test EE
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'
runs-on: ${{ matrix.RUNNER }}
strategy:
matrix:
DISTRO: [tomcat, wildfly, run]
RUNNER: [ubuntu-22.04, aws-arm-core-4-default]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Import Secrets
id: secrets
uses: hashicorp/vault-action@v3.4.0
with:
url: ${{ secrets.VAULT_ADDR }}
method: approle
roleId: ${{ secrets.VAULT_ROLE_ID }}
secretId: ${{ secrets.VAULT_SECRET_ID }}
exportEnv: false
secrets: |
secret/data/products/cambpm/ci/nexus USER | NEXUS_USER;
secret/data/products/cambpm/ci/nexus PASSWORD | NEXUS_PASS;
secret/data/products/cambpm/ci/harbor username | HARBOR_USERNAME;
secret/data/products/cambpm/ci/harbor password | HARBOR_PASSWORD;
- name: Login to Harbor
if: github.event_name == 'workflow_dispatch'
uses: docker/login-action@v3
with:
registry: registry.camunda.cloud
username: ${{ steps.secrets.outputs.HARBOR_USERNAME }}
password: ${{ steps.secrets.outputs.HARBOR_PASSWORD }}
- name: Build
run: ./pipeline.sh
env:
DISTRO: ${{ matrix.DISTRO }}
EE: true
NEXUS_PASS: ${{ steps.secrets.outputs.NEXUS_PASS }}
NEXUS_USER: ${{ steps.secrets.outputs.NEXUS_USER }}
VERSION: ${{ github.event.inputs.version }}
SNAPSHOT: ${{ github.event.inputs.snapshot }}
PUSH_REGISTRY: ${{ github.event_name == 'workflow_dispatch' && 'registry.camunda.cloud/cambpm-ee' || '' }}
- name: Test
run: ./test.sh
working-directory: test
env:
DISTRO: ${{ matrix.DISTRO }}
EE: true
VERSION: ${{ github.event.inputs.version }}
SNAPSHOT: ${{ github.event.inputs.snapshot }}
create-manifests-ee:
if: github.event_name == 'workflow_dispatch'
needs: build-and-test-ee
runs-on: ubuntu-22.04
strategy:
matrix:
DISTRO: [tomcat, wildfly, run]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Import Secrets
id: secrets
uses: hashicorp/vault-action@v3.4.0
with:
url: ${{ secrets.VAULT_ADDR }}
method: approle
roleId: ${{ secrets.VAULT_ROLE_ID }}
secretId: ${{ secrets.VAULT_SECRET_ID }}
exportEnv: false
secrets: |
secret/data/products/cambpm/ci/harbor username | HARBOR_USERNAME;
secret/data/products/cambpm/ci/harbor password | HARBOR_PASSWORD;
- name: Login to Harbor
uses: docker/login-action@v3
with:
registry: registry.camunda.cloud
username: ${{ steps.secrets.outputs.HARBOR_USERNAME }}
password: ${{ steps.secrets.outputs.HARBOR_PASSWORD }}
- name: Create multi-arch manifests
run: ./create-manifests.sh
env:
DISTRO: ${{ matrix.DISTRO }}
EE: true
VERSION: ${{ github.event.inputs.version }}
SNAPSHOT: ${{ github.event.inputs.snapshot }}
PUSH_REGISTRY: registry.camunda.cloud/cambpm-ee