Skip to content

Commit

Permalink
using dockerfile as relative to context
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Dec 22, 2020
1 parent 3e5c75e commit 6d366cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ inputs:
required: false
default: .
dockerfile:
description: Dockerfile path (relative to repo root) if not './Dockerfile'
description: Dockerfile path (relative to context) if not 'Dockerfile'
required: false
default: ./Dockerfile
default: Dockerfile
on-master:
description: tag to use on master commits. (ex. 'latest' or 'dev') Leave out if not wanted
required: false
Expand Down
2 changes: 1 addition & 1 deletion build_push.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
sys.exit(0)

context = os.getenv("CONTEXT", ".")
dockerfile = os.getenv("DOCKERFILE", "./Dockerfile")
dockerfile = os.path.join(context, os.getenv("DOCKERFILE", "Dockerfile"))

# login to dockerhub
print("Logging into Docker hub…")
Expand Down

0 comments on commit 6d366cd

Please sign in to comment.