Merge pull request #774 from grouville/docker-push-optional-auth

docker.#Push: Set auth as optional
This commit is contained in:
Andrea Luzzardi 2021-07-02 12:09:29 +02:00 committed by GitHub
commit 696b8a4d4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 7 deletions

View File

@ -74,12 +74,10 @@ Push a docker image to a remote registry
### docker.#Push Inputs
| Name | Type | Description |
| ------------- |:-------------: |:-------------: |
|*target* | `string` |Remote target (example: "index.docker.io/alpine:latest") |
|*source* | `dagger.#Artifact` |Image source |
|*auth.username* | `string` |Username |
|*auth.secret* | `string` |Password or secret |
| Name | Type | Description |
| ------------- |:-------------: |:-------------: |
|*target* | `string` |Remote target (example: "index.docker.io/alpine:latest") |
|*source* | `dagger.#Artifact` |Image source |
### docker.#Push Outputs

View File

@ -37,7 +37,7 @@ import (
source: dagger.#Artifact @dagger(input)
// Registry auth
auth: {
auth?: {
// Username
username: string @dagger(input)