-
Notifications
You must be signed in to change notification settings - Fork 19
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
👷 Pass application version docker build and to the applications #445
👷 Pass application version docker build and to the applications #445
Conversation
Coverage Report
Click to view remaining coverage report
|
const fs = require('fs'); | ||
|
||
const targetPath = `${__dirname}/../src/app/environment/version.ts`; | ||
const appVersion = process.env.TWAKE_DRIVE_VERSION || '1.0.0'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why have a default ? If setting the version and one isn't provided, fail
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's for the local build, when you don't need a version
|
||
target "_common" { | ||
platforms = ["linux/amd64", "linux/arm64"] | ||
context = "tdrive" | ||
inherits = ["docker-metadata-action"] | ||
args = { | ||
VERSION = "$GITHUB_REF_NAME" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be "${GITHUB_REF_NAME}"
for it to work.
See https://docs.docker.com/build/bake/reference/#interpolate-variables-into-attributes for more details
👷 Pass application version docker build and to the applications thelves