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

Reduce the number of files in which the GROCY_IMAGE_TAG value has to be updated during version upgrades #170

Merged
merged 4 commits into from
Jun 25, 2022

Conversation

jayaddison
Copy link
Contributor

Relates to #109, #168.

@@ -23,7 +23,7 @@ jobs:
uses: redhat-actions/buildah-build@v2.9
with:
image: backend
tags: ${{ github.event.release.tag_name }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

As a result of these changes, grocy/frontend and grocy/backend images will be published using both the grocy application version tag (vX.Y.Z) and also the grocy-docker container version tag (vX.Y.Z-n_iteration).

For example, the next expected version of them will be:

  • backend with tags v3.3.1, v3.3.1-2
  • frontend with tags v3.3.1, v3.3.1-2

This allows the "current" Grocy v3.3.1 image to be pulled without knowing the grocy-docker iteration number.

It also allows customers to stick to a specific container iteration if they prefer.

And as a result, these allow the iteration number to be removed from the docker-compose file (and README) - building using that will pull the latest-available version per-Grocy-release.

"main": ".",
"scripts": {
"build": "docker-compose build",
"test": "npm run build && npm run test:backend && npm run test:frontend",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This package.json file (and associated package-lock.json) is used purely to provide support for Snyk containerfile vulnerability scans.

Although there are some tradeoffs, it seems better overall to perform that as part of GitHub Actions workflows, and so these files are removed in preparation for that.

(see also a related note at #109 (comment))

These files contained the grocy-docker container iteration release number, for no particularly good reason, and so it also simplifies the release process and makes it less error-prone by removing these files.

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

Successfully merging this pull request may close these issues.

1 participant