GoogleContainerTools / GoogleContainerTools/skaffold

Buildpacks do not seem to use tagPolicy

Open
#9,755 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

Trying to do a standard buildpack build for Kotlin/Spring Boot:
```
apiVersion: skaffold/v4beta12
kind: Config
metadata:
name: aimia

build:
artifacts:
- image: company/aimia
context: .
sync:
auto: true
buildpacks:
builder: paketobuildpacks/builder-jammy-base
trustBuilder: true
env:
- BP_JVM_VERSION=21
- BPL_DEBUG_ENABLED=true
```

This mostly works fine, except that skaffold generates a tag I would expect, but `pack` does not use that tag:

```
Generating tags...
- company/aimia -> company/aimia:v0.0.167-178-gd4c0f8b2-dirty
Checking cache...
- company/aimia: Not found. Building
Starting build...
Building [company/aimia]...
Target platforms: [linux/amd64]
latest: Pulling from paketobuildpacks/builder-jammy-base
Digest: sha256:cd18660ff72faf4e6b066ac28b27c22b8ee167720fc34b38bd0f97ecbf8cee83
Status: Image is up to date for paketobuildpacks/builder-jammy-base:latest
latest: Pulling from paketobuildpacks/run-jammy-base
Digest: sha256:26d6d26e0e08ae5003a0d1ee4cdd63a0692cb9c530b2704f78fbd7662d79ae09
Status: Image is up to date for paketobuildpacks/run-jammy-base:latest
===> ANALYZING
Image with name "company/aimia:latest" not found
```
If I run `pack` from the command line, this seems to work fine. The debug output from skaffold isn't helpful, as it just shows `Executing template &{envTemplate 0x140008ff320 0x140008f8730 }`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.