parent
6012898d9b
commit
96c0f677aa
2 changed files with 11 additions and 7 deletions
|
|
@ -1,11 +1,4 @@
|
|||
steps:
|
||||
|
||||
- name: create-versioninfo
|
||||
image: alpine
|
||||
commands:
|
||||
- 'echo "Commit SHA: ${CI_COMMIT_SHA:0:7}" > public/versioninfo'
|
||||
- 'echo "Build Date: $(date -u +"%Y-%m-%d %H:%M:%S")" >> public/versioninfo'
|
||||
|
||||
- name: build-image
|
||||
# This plugin handles the DinD complexity for you
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
|
|
@ -24,3 +17,7 @@ steps:
|
|||
tags:
|
||||
- latest
|
||||
- ${CI_COMMIT_SHA:0:7}
|
||||
# tell the Dockerfile about the commit SHA and build date
|
||||
build_args:
|
||||
- COMMIT_SHA=${CI_COMMIT_SHA:0:7}
|
||||
- BUILD_DATE=$(date -u +"%Y-%m-%d %H:%M:%S")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue