Skip to content

Commit

Permalink
Add validation for docker inputs
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric authored and ES-Alexander committed Jan 25, 2024
1 parent e20828b commit 9ab16e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ runs:
- name: Prepare
id: prepare
run: |
[ -z "${{inputs.docker-username}}" ] && echo "Error: Docker username is empty" && exit 1
[ -z "${{inputs.docker-password}}" ] && echo "Error: Docker password is empty" && exit 1
# Deploy image with the name of the branch, if the build is a git tag replace tag with the tag name.
# If the git tag is in SemVer format, append the "latest" tag to the image
DOCKER_IMAGE=${{ inputs.docker-username }}/${{ inputs.image-prefix }}${{ inputs.image-name }}
Expand Down

0 comments on commit 9ab16e1

Please sign in to comment.