generated from kedacore/github-template
-
Notifications
You must be signed in to change notification settings - Fork 95
45 lines (41 loc) · 1.49 KB
/
images.yaml
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
name: Build Images
on:
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build_scaler:
runs-on: ubuntu-latest
container: ghcr.io/kedacore/keda-tools:1.22.2
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Register workspace path
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Build The Scaler
run: |
COMMIT=$(git rev-parse --short HEAD)
VERSION=${COMMIT} make docker-build-scaler
build_operator:
runs-on: ubuntu-latest
container: ghcr.io/kedacore/keda-tools:1.22.2
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Register workspace path
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Build The Operator
run: |
COMMIT=$(git rev-parse --short=7 HEAD)
VERSION=${COMMIT} make docker-build-operator
build_interceptor:
runs-on: ubuntu-latest
container: ghcr.io/kedacore/keda-tools:1.22.2
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Register workspace path
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Build The Interceptor
run: |
COMMIT=$(git rev-parse --short=7 HEAD)
VERSION=${COMMIT} make docker-build-interceptor