GoogleContainerTools/skaffold
if git is not installed skaffold silently falls back to sha256 tagPolicy
Aberta
#5.439 aberto em 23 de fev. de 2021
area/taghelp wantedkind/bugpriority/p3
Métricas do repositório
- Stars
- (12.822 estrelas)
- Métricas de merge de PR
- (Mesclagem média 3d 6h) (16 fundiu PRs em 30d)
Description
When git is not installed skaffold silently falls back to sha256 tagPolicy ignoring gitCommit tagPolicy. I've got hard time debugging why skaffold works as expected locally but wrong in CI, while versions are same
Expected behavior
FAILURE: git not installed. Can't use specified tagPolicy
Actual behavior
Silent fallback to sha256 tagPolicy. Images tagged with IMAGE_TAG is set to latest
Information
- Skaffold version: 1.20.0
- Operating system: all
- Contents of skaffold.yaml:
apiVersion: skaffold/v2beta9
kind: Config
metadata:
name: best
build:
artifacts:
- image: registry.dummy/best
context: ./
docker:
dockerfile: Dockerfile
tagPolicy:
gitCommit:
variant: AbbrevCommitSha
local:
push: true
useBuildkit: true
deploy:
helm:
releases:
- name: best
chartPath: helm/best
values:
image: registry.dummy/best
Steps to reproduce the behavior
- uninstall git
skaffold render- no errors present, image tag set to latest