Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #649 from cloudfoundry/177481547-oci-image-labels-…
Browse files Browse the repository at this point in the history
…capi-nginx-kbld

Added OCI labels to capi nginx kbld config
  • Loading branch information
Birdrock authored Mar 30, 2021
2 parents 98c5585 + 992e618 commit 1ea69d1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
3 changes: 2 additions & 1 deletion images/build/capi/generate-kbld-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ function generate_kbld_config() {
kbld_config_values=$(cat <<EOF
#@data/values
---
git_sha: ${git_sha}
git_ref: ${git_sha}
git_url: https://github.com/cloudfoundry/capi-k8s-release.git
EOF
)

Expand Down
14 changes: 10 additions & 4 deletions images/build/capi/kbld.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sources:
- gcr.io/paketo-buildpacks/go
rawOptions:
- --env
- #@ "BP_OCI_REVISION=" + data.values.git_sha
- #@ "BP_OCI_REVISION=" + data.values.git_ref
- --env
- "BP_OCI_SOURCE=https://github.com/cloudfoundry/capi-k8s-release"
- imageRepo: cloudfoundry/cf-api-backup-metadata-generator
Expand All @@ -28,7 +28,7 @@ sources:
- "--default-process"
- "wait"
- --env
- #@ "BP_OCI_REVISION=" + data.values.git_sha
- #@ "BP_OCI_REVISION=" + data.values.git_ref
- --env
- "BP_OCI_SOURCE=https://github.com/cloudfoundry/capi-k8s-release"
- imageRepo: cloudfoundry/cf-api-package-registry-buddy
Expand All @@ -40,12 +40,18 @@ sources:
- gcr.io/paketo-buildpacks/go
rawOptions:
- --env
- #@ "BP_OCI_REVISION=" + data.values.git_sha
- #@ "BP_OCI_REVISION=" + data.values.git_ref
- --env
- "BP_OCI_SOURCE=https://github.com/cloudfoundry/capi-k8s-release"
- imageRepo: cloudfoundry/capi-nginx
path: sources/capi-k8s-release/dockerfiles/nginx
docker: {}
docker:
build:
rawOptions:
- --label
- #@ "org.opencontainers.image.source={}".format(data.values.git_url)
- --label
- #@ "org.opencontainers.image.revision={}".format(data.values.git_ref)
destinations:
- imageRepo: cloudfoundry/cf-api-controllers
newImage: index.docker.io/cloudfoundry/cf-api-controllers
Expand Down

0 comments on commit 1ea69d1

Please sign in to comment.