Skip to content

Commit

Permalink
use kaniko-build img just built to build PF images
Browse files Browse the repository at this point in the history
  • Loading branch information
nqb committed Nov 25, 2022
1 parent b39c9d5 commit bcac401
Showing 1 changed file with 30 additions and 14 deletions.
44 changes: 30 additions & 14 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,27 @@ variables:
tags:
- shell

.build_img_container_job:
.build_img_container_job_dev:
stage: build_img_container
dependencies: []
image:
name: ${KANIKOBUILD_IMG}
name: ${KANIKOBUILD_IMG}:${CI_COMMIT_REF_SLUG}
tags:
- docker

.build_img_container_job_br_maint:
stage: build_img_container
dependencies: []
image:
name: ${KANIKOBUILD_IMG}:${CI_COMMIT_REF_SLUG}
tags:
- docker

.build_img_container_job_rel:
stage: build_img_container
dependencies: []
image:
name: ${KANIKOBUILD_IMG}:${CI_COMMIT_TAG}
tags:
- docker

Expand Down Expand Up @@ -546,7 +562,7 @@ kaniko_dev:

pfdeb_dev:
extends:
- .build_img_container_job
- .build_img_container_job_dev
- .build_img_container_devel_rules
needs: ["kaniko_dev"]
variables:
Expand All @@ -555,7 +571,7 @@ pfdeb_dev:

pfdeb_based_dev:
extends:
- .build_img_container_job
- .build_img_container_job_dev
- .build_img_container_devel_rules
needs: ["pfdeb_dev"]
variables:
Expand Down Expand Up @@ -584,7 +600,7 @@ pfdeb_based_dev:

img_dev:
extends:
- .build_img_container_job
- .build_img_container_job_dev
- .build_img_container_devel_rules
needs: ["kaniko_dev"]
variables:
Expand All @@ -596,7 +612,7 @@ img_dev:

rad_based_dev:
extends:
- .build_img_container_job
- .build_img_container_job_dev
- .build_img_container_devel_rules
needs: ["pfdeb_based_dev"]
variables:
Expand All @@ -621,7 +637,7 @@ kaniko_br_maint:

pfdeb_br_maint:
extends:
- .build_img_container_job
- .build_img_container_job_br_maint
- .build_img_container_branches_and_maintenance_rules
needs: ["kaniko_br_maint"]
variables:
Expand All @@ -630,7 +646,7 @@ pfdeb_br_maint:

pfdeb_based_br_maint:
extends:
- .build_img_container_job
- .build_img_container_job_br_maint
- .build_img_container_branches_and_maintenance_rules
needs: ["pfdeb_br_maint"]
variables:
Expand Down Expand Up @@ -659,7 +675,7 @@ pfdeb_based_br_maint:

img_br_maint:
extends:
- .build_img_container_job
- .build_img_container_job_br_maint
- .build_img_container_branches_and_maintenance_rules
needs: ["kaniko_br_maint"]
variables:
Expand All @@ -671,7 +687,7 @@ img_br_maint:

rad_based_br_maint:
extends:
- .build_img_container_job
- .build_img_container_job_br_maint
- .build_img_container_branches_and_maintenance_rules
needs: ["pfdeb_based_br_maint"]
variables:
Expand All @@ -696,7 +712,7 @@ kaniko_rel:

pfdeb_rel:
extends:
- .build_img_container_job
- .build_img_container_job_rel
- .release_only_rules
needs: ["kaniko_rel"]
variables:
Expand All @@ -705,7 +721,7 @@ pfdeb_rel:

pfdeb_based_rel:
extends:
- .build_img_container_job
- .build_img_container_job_rel
- .release_only_rules
needs: ["pfdeb_rel"]
variables:
Expand Down Expand Up @@ -734,7 +750,7 @@ pfdeb_based_rel:

img_rel:
extends:
- .build_img_container_job
- .build_img_container_job_rel
- .release_only_rules
needs: ["kaniko_rel"]
variables:
Expand All @@ -746,7 +762,7 @@ img_rel:

rad_based_rel:
extends:
- .build_img_container_job
- .build_img_container_job_rel
- .release_only_rules
needs: ["pfdeb_based_rel"]
variables:
Expand Down

0 comments on commit bcac401

Please sign in to comment.