github-community-projects / github-community-projects/safe-settings
version is not shown correctly
- Dominant language
- JavaScript
- Stars
- 921
- Forks
- 226
- Avg merge
- 18h 3m
- Merged PRs (30d)
- 14
Description
## Problem Description
Version is not shown correctly when running the app, for instance:
### What is actually happening
```cucumber
Given the docker image ghcr.io/github/safe-settings:2.1.0
When I run docker run --rm -ti ghcr.io/github/safe-settings:2.1.0
Then I see safe-settings@0.1.0-rc.26 start
```
```cucumber
Given the docker image ghcr.io/github/safe-settings:2.1.0
When I run docker inspect ghcr.io/github/safe-settings:2.1.0 | jq -r '.[0].Config.Labels'
Then I see "version": "1.0"
```
### What is the expected behavior
To show `safe-settings@2.1.0 start` and `version: 2.1.0`
### Error output, if available
## Context
### Are you using the hosted instance of probot/settings or running your own?
### If running your own instance, are you using it with github.com or GitHub Enterprise?
#### Version of probot/settings
#### Version of GitHub Enterprise
Contributor guide
Research direction
Start by reproducing the discrepancy with `docker run --rm -ti ghcr.io/github/safe-settings:2.1.0` and inspect the image metadata with `docker inspect ... | jq`. Trace where the startup version and image label values come from. Done means both report 2.1.0 for the 2.1.0 image.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, javascript
- Domain
- devops, release
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100