Add production image build
This commit is contained in:
parent
7482786c22
commit
fdb82bddf5
11
Taskfile.yml
11
Taskfile.yml
@ -106,3 +106,14 @@ tasks:
|
||||
POST_DATE:
|
||||
sh: date +'%Y-%m-%d'
|
||||
cmd: touch "source/_articles/{{.POST_DATE}}-new-post.md"
|
||||
|
||||
deploy:
|
||||
vars:
|
||||
COMMIT_HASH:
|
||||
sh: git rev-parse --short HEAD
|
||||
TIMESTAMP:
|
||||
sh: date +%s
|
||||
IMAGE_TAG: homepage-nginx:{{.COMMIT_HASH}}-{{.TIMESTAMP}}
|
||||
cmds:
|
||||
- task: build-prod
|
||||
- docker build --pull --file docker/Dockerfile.nginx.prod --tag {{.IMAGE_TAG}} .
|
||||
|
Loading…
Reference in New Issue
Block a user