-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔧 Add required configuration file action.yml
- Loading branch information
1 parent
a1b45a1
commit d9c4ae3
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: 'Docker Login, Build, Tag & Push Action' | ||
author: 'Dinush Chathurya' | ||
description: 'GitHub Action to login, build, tag & push Docker images to DockerHub' | ||
inputs: | ||
username: | ||
description: 'Username to connect to Docker registry' | ||
required: true | ||
password: | ||
description: 'Password to connect to Docker registry' | ||
required: true | ||
context: | ||
description: 'Docker build context' | ||
required: true | ||
file: | ||
description: 'Docker build file' | ||
required: true | ||
repoOwner: | ||
description: 'Docker repository owner' | ||
required: true | ||
repository: | ||
description: 'Docker repository' | ||
required: true | ||
tag: | ||
description: 'Docker image tag' | ||
required: true | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- ${{ inputs.username }} | ||
- ${{ inputs.password }} | ||
- ${{ inputs.context }} | ||
- ${{ inputs.file }} | ||
- ${{ inputs.repoOwner }} | ||
- ${{ inputs.repository }} | ||
- ${{ inputs.tag }} | ||
branding: | ||
icon: 'upload' | ||
color: 'black' |