Skip to content

Added release.json generation to builds#2

Open
tuj wants to merge 3 commits intofeature/3x-github-packagesfrom
feature/release-json
Open

Added release.json generation to builds#2
tuj wants to merge 3 commits intofeature/3x-github-packagesfrom
feature/release-json

Conversation

@tuj
Copy link
Copy Markdown

@tuj tuj commented Mar 30, 2026

@tuj tuj self-assigned this Mar 30, 2026
@tuj tuj added the bug Something isn't working label Mar 30, 2026
@tuj tuj requested review from cableman and turegjorup March 30, 2026 10:55
@tuj tuj marked this pull request as ready for review March 30, 2026 11:32

- name: Create release file
run: |
printf "{\n \"releaseTimestamp\": $(date +%s),\n \"releaseTime\": \"$(date)\",\n \"releaseVersion\": \"${{ github.ref_name }}\"\n}" > public/release.json
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should run name: Set release timestamp first, then use those values here. Otherwise we get slightly different timestamps.


ARG APP_VERSION="develop"
ARG APP_RELEASE_TIMESTAMP=0
ARG APP_RELEASE_TIME=""
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we do default values similar to

      --build-arg APP_RELEASE_TIME="$(date)" \
      --build-arg APP_RELEASE_TIMESTAMP="$(date +%s)" \

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants