diff --git a/action.yaml b/action.yaml index 1dcbf7f..80f730c 100644 --- a/action.yaml +++ b/action.yaml @@ -84,7 +84,11 @@ runs: nocache="" fi - if ${{ inputs.build_command }} build ${nocache} --build-arg BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" -t ${image} . ; then + annotation=$(buildAnnotations "Dockerfile") + + debug "Generated annotations: $annotations" + + if ${{ inputs.build_command }} build ${annotations} ${nocache} --build-arg BUILD_DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')" -t ${image} . ; then success "Image build" "${{ inputs.image_name }}" else error "Failed" "Cannot built the image ${{ inputs.image_name }}"