Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tag crane/gcrane images with Git tag #990

Merged
merged 1 commit into from
Apr 23, 2021

Conversation

imjasonh
Copy link
Collaborator

Fixes #755

When the tag name is set, this will produce images like:

  • gcr.io/go-containerregistry/crane:vX.Y.Z
  • gcr.io/go-containerregistry/crane:debug-vX.Y.Z

When the tag name is not set (building an untagged commit), it will produce images as normal (e.g., gcr.io/go-containerregistry/crane:abcdef and :latest).

Also update the ko version used to build images, and fail if using an unset env var.

@imjasonh imjasonh force-pushed the cloudbuild-tag branch 2 times, most recently from a5cbec9 to b24da46 Compare April 22, 2021 14:30
cloudbuild.yaml Outdated Show resolved Hide resolved
cloudbuild.yaml Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Apr 22, 2021

Codecov Report

Merging #990 (08a656c) into main (7cfaa51) will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #990      +/-   ##
==========================================
- Coverage   75.21%   75.18%   -0.03%     
==========================================
  Files         107      107              
  Lines        5063     5061       -2     
==========================================
- Hits         3808     3805       -3     
- Misses        710      711       +1     
  Partials      545      545              
Impacted Files Coverage Δ
pkg/v1/remote/options.go 57.44% <0.00%> (-1.74%) ⬇️
pkg/v1/google/options.go 88.88% <0.00%> (-1.12%) ⬇️
pkg/v1/remote/transport/bearer.go 75.40% <0.00%> (-0.43%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7cfaa51...08a656c. Read the comment docs.

cloudbuild.yaml Outdated Show resolved Hide resolved
cmd/crane/README.md Outdated Show resolved Hide resolved
cloudbuild.yaml Outdated Show resolved Hide resolved
cloudbuild.yaml Outdated Show resolved Hide resolved
cloudbuild.yaml Outdated Show resolved Hide resolved
cmd/crane/README.md Outdated Show resolved Hide resolved
@jonjohnsonjr jonjohnsonjr merged commit 0976a27 into google:main Apr 23, 2021
@max-wittig
Copy link
Contributor

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add tagged versions to gcr.io
4 participants