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

fix: various issues with docker image workflow #1172

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

MaienM
Copy link
Contributor

@MaienM MaienM commented Sep 24, 2024

The conditional statements were all in the form of input || true, presumably in an effort to treat this as true if the input was not set as it would be when the trigger is a push rather than a manual dispatch (null || true => true). However false || true also results in true, so this would just always result in true.

Changing this to != false does result in the desired behaviour:

  • Enabled: true != false => true
  • Disabled: false != false => false
  • Unset: null != false => true

It was always looking at the dev branch for the commit messages in the versioning step, which meant that running it against a different branch would not have the desired result.

The conditional statements were all in the form of `input || true`,
presumably in an effort to treat this as `true` if the input was
not set as it would be when the trigger is a push rather than a manual
dispatch (`null || true` => `true`). However `false || true` also
results in `true`, so this would just always result in `true`.

Changing this to `!= false` does result in the desired behaviour:

- Enabled: `true != false` => `true`
- Disabled: `false != false` => `false`
- Unset: `null != false` => `true`
@MaienM MaienM requested a review from a team as a code owner September 24, 2024 22:41
Copy link

deepsource-io bot commented Sep 24, 2024

Here's the code health analysis summary for commits b2143ed..623c73a. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

@MaienM MaienM changed the title Fix issues with docker image workflow fix: various issues with docker image workflow Sep 24, 2024
manuel-rw
manuel-rw previously approved these changes Sep 25, 2024
.github/workflows/deployment-docker-image.yml Outdated Show resolved Hide resolved
@manuel-rw manuel-rw merged commit d029f48 into homarr-labs:dev Sep 25, 2024
10 checks passed
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