Skip to content

Commit 82bb7fb

Browse files
committed
Read secrets as an input instead of directly
1 parent 473b5d1 commit 82bb7fb

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
# docker-build-action
2+
23
This GitHub action will log into the specified Docker Registry and build 1 or 2 images based on the given config.
34

45
## Config
6+
57
`registry`: Registry's host
8+
69
`user`: Registry's user
10+
711
`password`: Registry user's password or token
12+
813
`image`: Docker image name without tag
14+
915
`tag`: Docker image tag
10-
`build_dev`: Creates a -dev image too if set to true
16+
17+
`build_args`: Environment variables passed to docker build

action.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@ description: "Builds the Docker image and pushes it to the specified registry"
33
inputs:
44
registry:
55
description: "Registry's host"
6-
required: true
6+
required: false
77
default: "ghcr.io"
88
user:
99
description: "Registry's user"
10-
required: true
10+
required: false
1111
default: ${{ github.actor }}
1212
password:
1313
description: "Registry user's password or token"
1414
required: true
15-
default: ${{ secrets.GITHUB_TOKEN }}
1615
image:
1716
description: "Docker image name without tag"
1817
required: true

0 commit comments

Comments
 (0)