x.y.z -> vx.y.z so that images have the same versioning schema as keda images #2286
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |