Skip to content

Commit

Permalink
Switch operators builds to use specific dockerfiles (kyma-project#9577)
Browse files Browse the repository at this point in the history
* switch operators builds to use specific dockerfiles

* add pjtester.yaml

* dev pjtester
  • Loading branch information
pPrecel authored and dekiel committed Jan 12, 2024
1 parent 123f80a commit 06cdd53
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ presubmits: # runs on PRs
- "sh"
args:
- "-c"
- "/image-builder --name=serverless-operator --config=/config/kaniko-build-config.yaml --context=. --dockerfile=components/operator/Dockerfile"
- "/image-builder --name=serverless-operator --config=/config/kaniko-build-config.yaml --context=. --dockerfile=components/operator/Dockerfile.dev --build-arg=IMG_DIRECTORY=dev --build-arg=IMG_VERSION=PR-$PULL_NUMBER"
env:
- name: BUILDKITD_FLAGS
value: "--oci-worker-no-process-sandbox"
Expand Down Expand Up @@ -176,7 +176,7 @@ postsubmits: # runs on main
- "sh"
args:
- "-c"
- "/image-builder --name=serverless-operator --config=/config/kaniko-build-config.yaml --context=. --dockerfile=components/operator/Dockerfile --tag=$PULL_BASE_SHA --tag=$PULL_BASE_REF"
- "/image-builder --name=serverless-operator --config=/config/kaniko-build-config.yaml --context=. --dockerfile=components/operator/Dockerfile.dev --build-arg=IMG_DIRECTORY=prod --build-arg=IMG_VERSION=$PULL_BASE_SHA --tag=$PULL_BASE_SHA --tag=$PULL_BASE_REF"
env:
- name: BUILDKITD_FLAGS
value: "--oci-worker-no-process-sandbox"
Expand Down
2 changes: 1 addition & 1 deletion prow/jobs/kyma-project/serverless/serverless-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ postsubmits: # runs on main
- "sh"
args:
- "-c"
- "/image-builder --name=serverless-operator --config=/config/kaniko-build-config.yaml --context=. --dockerfile=components/operator/Dockerfile --tag=$PULL_BASE_REF"
- "/image-builder --name=serverless-operator --config=/config/kaniko-build-config.yaml --context=. --dockerfile=components/operator/Dockerfile.release --tag=$PULL_BASE_REF"
env:
- name: BUILDKITD_FLAGS
value: "--oci-worker-no-process-sandbox"
Expand Down
10 changes: 7 additions & 3 deletions templates/data/serverless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,9 @@ templates:
--name=serverless-operator
--config=/config/kaniko-build-config.yaml
--context=.
--dockerfile=components/operator/Dockerfile
--dockerfile=components/operator/Dockerfile.dev
--build-arg=IMG_DIRECTORY=dev
--build-arg=IMG_VERSION=PR-$PULL_NUMBER
inheritedConfigs:
global:
- jobConfig_presubmit
Expand All @@ -401,7 +403,9 @@ templates:
--name=serverless-operator
--config=/config/kaniko-build-config.yaml
--context=.
--dockerfile=components/operator/Dockerfile
--dockerfile=components/operator/Dockerfile.dev
--build-arg=IMG_DIRECTORY=prod
--build-arg=IMG_VERSION=$PULL_BASE_SHA
--tag=$PULL_BASE_SHA
--tag=$PULL_BASE_REF
inheritedConfigs:
Expand Down Expand Up @@ -435,7 +439,7 @@ templates:
--name=serverless-operator
--config=/config/kaniko-build-config.yaml
--context=.
--dockerfile=components/operator/Dockerfile
--dockerfile=components/operator/Dockerfile.release
--tag=$PULL_BASE_REF
inheritedConfigs:
global:
Expand Down

0 comments on commit 06cdd53

Please sign in to comment.