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

docker build --secret does not support dst #5925

Closed
briandealwis opened this issue Jun 2, 2021 · 0 comments · Fixed by #5927
Closed

docker build --secret does not support dst #5925

briandealwis opened this issue Jun 2, 2021 · 0 comments · Fixed by #5927

Comments

@briandealwis
Copy link
Member

Our Docker builder's secret object takes a dst field (#4731), but it is not supported by docker build --secret: that field is actually specified from within the Dockerfile.

Expected behavior

Using a filled in secret should succeed:

secret:
    id: npmrc
    src: "/Users/bdealwis/.npmrc"
    dst: /app/npmrc

Actual behavior

$ skaffold build
Starting build...
Building [skaffold-example]...
could not parse secrets: [id=npmrc,src=/Users/bdealwis/.npmrc,dst=/app/npmrc]: unexpected key 'dst' in 'dst=/app/npmrc'
running build: exit status 1

$ docker build --secret id=npmrc,src=$HOME/.npmrc,dst=/app/npmrc .
could not parse secrets: [id=npmrc,src=/Users/bdealwis/.npmrc,dst=/app/npmrc]: unexpected key 'dst' in 'dst=/app/npmrc'

Information

  • Skaffold version: 1.23.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant