Open wallrj opened 4 years ago
We found that --branch
is marked as a required field, but the code suggests that it should be optional and that --branch
is only used when a --git-ref
has not been supplied.
We commented out the markRequired
line and ran the command as follows:
./cmrel stage --git-ref=release-1.0 --release-version=v1.0.2
2020/09/22 15:02:20 Root options:
2020/09/22 15:02:20 Debug: false
2020/09/22 15:02:20 Stage options:
2020/09/22 15:02:20 Bucket: "cert-manager-release"
2020/09/22 15:02:20 Org: "jetstack"
2020/09/22 15:02:20 Repo: "cert-manager"
2020/09/22 15:02:20 Branch: "master"
2020/09/22 15:02:20 GitRef: "release-1.0"
2020/09/22 15:02:20 CloudBuildFile: "./gcb/stage/cloudbuild.yaml"
2020/09/22 15:02:20 Project: "cert-manager-release"
2020/09/22 15:02:20 ReleaseVersion: "v1.0.2"
2020/09/22 15:02:20 PublishedImageRepo: "quay.io/jetstack"
2020/09/22 15:02:20 ---
2020/09/22 15:02:20 Staging build for jetstack/cert-manager@release-1.0
2020/09/22 15:02:20 DEBUG: Loading cloudbuild.yaml file from "./gcb/stage/cloudbuild.yaml"
2020/09/22 15:02:20 DEBUG: building google cloud build API client
2020/09/22 15:02:20 Submitting GCB build job...
2020/09/22 15:02:21 DEBUG: decoding build operation metadata
2020/09/22 15:02:21 ---
2020/09/22 15:02:21 Submitted build with name: "9f90dcb5-dfee-47f3-a200-943b822a6a97"
2020/09/22 15:02:21 View logs at: https://console.cloud.google.com/cloud-build/builds/9f90dcb5-dfee-47f3-a200-943b822a6a97?project=1021342095237
2020/09/22 15:02:21 Log bucket: gs://1021342095237.cloudbuild-logs.googleusercontent.com
2020/09/22 15:02:21 Once complete, view artifacts at: gs://cert-manager-release/stage/gcb/release/v1.0.2-release-1.0
2020/09/22 15:02:21 ---
But it did not seem to resolve the git-ref release-1.0
to a git commit ID.
We should discuss what the desired behaviour should be.
/kind cleanup
/area deploy
@wallrj: The label(s) area/deploy
cannot be applied, because the repository doesn't have them