GoogleContainerTools / GoogleContainerTools/skaffold

Error parsing complex Dockerfile FROM statement.

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

Description

```
ARG DOCKER_REGISTRY
FROM ${DOCKER_REGISTRY:+${DOCKER_REGISTRY}/}python:3.10-buster
...
```
Build results in:
```
getting hash for artifact "dsp-test": getting dependencies for "dsp-test": parsing ONBUILD instructions: retrieving image "${DOCKER_REGISTRY:/}python:3.10-buster": parsing reference "${DOCKER_REGISTRY:/}python:3.10-buster": could not parse reference: ${DOCKER_REGISTRY:/}python:3.10-buster
```

### Information

- Skaffold version: v2.6.3
- Operating system: ArchLinux
- Installed via: pacman
- Contents of skaffold.yaml:

```yaml
apiVersion: skaffold/v4beta6
kind: Config
metadata:
name: dsp

build:
artifacts:
- context: ../dsp-test
image: dsp-test
local:
push: false

```

### Steps to reproduce the behavior
`skaffold build`

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.