Skip to content

Conversation

@baylisscg
Copy link

Adds a basic Dockerfile to build a container for the prescient dashboard branch.
Adds npm script "build:container" to do so.
The main difference to be aware of is the switch to "standalone" output in next.config.ts
Relies on Docker's bake tool but this has been available for quite some time and is the basis of most CI/CD pipelines

Copy link
Member

Choose a reason for hiding this comment

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

Will this require adding / configiring variables for this worflow environment?

Copy link
Author

Choose a reason for hiding this comment

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

No. They're all either defined in the Actions context or specified in the top level env block.

Removes setting `SOURCE_DATE_EPOCH` from git log as we never actually check out the repository. Sets it to `0` instead.
Simplifies pull request / main branch logic by simply only pushing the image if triggered by a push to the prescient branch.
@baylisscg
Copy link
Author

I've folded in upstream fixes to the workflow file. It's now the same except it only pushes an image on the prescient branch. (It will trigger on pull-requests just won't push the result)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants