Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(build): frontend add build time duration output #27

Merged
merged 1 commit into from
Nov 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions build/frontend/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ inputs:
default: ""
type: string

outputs:
build-time:
description: "Define build time"
value: ${{ steps.build-push.outputs.build-time }}

runs:
using: "composite"
steps:
Expand Down
7 changes: 7 additions & 0 deletions packages/makefile/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ outputs:
description: "Define app custom version"
value: ${{ steps.app-meta-custom.outputs.app-custom-version }}

build-time:
description: "Define build time"
value: ${{ steps.build-app.outputs.duration }}

runs:
using: "composite"
steps:
Expand Down Expand Up @@ -150,11 +154,14 @@ runs:
make config

- name: Build application
id: build-app
if: "${{ inputs.build == 'true' }}"
shell: bash
working-directory: ${{ inputs.working_directory }}
run: |-
start=$(date +%s)
make build
echo "duration=$(($(date +%s)-$start))" >> $GITHUB_OUTPUT

- name: Build and push docker image
if: "${{ inputs.package == 'true' }}"
Expand Down