🍀 Proposal
: Expose image_tag
config in gitlab-ce-docker
plugin
#734
Labels
good first issue
Good for newcomers
What Would You Like to Add? Why Is This Needed?
We added a new plugin
gitlab-ce-docker
a few days ago to install gitlab-ce in docker.However, the image tag is hardcoded now.
devstream/internal/pkg/plugin/gitlabcedocker/gitlabcedocker.go
Lines 8 to 19 in 6d2c54a
As you can see, the image name is a
const
, and only supportrc
now.We want to expose this var to the config file to make the user customize it.
Design && Guides
Note: This good first issue looks like a little bit difficult. But trust me, it is easy in fact and I will give you as much guidance as I can.
1. Here is the config file, just put new config
image_tag
here.devstream/internal/pkg/show/config/plugins/gitlab-ce-docker.yaml
Lines 9 to 24 in 6d2c54a
2. Modify the
Options
structure, which corresponds to the configuration file of the first stepdevstream/internal/pkg/plugin/gitlabcedocker/options.go
Lines 1 to 12 in 6d2c54a
3. change the generate logic of
gitlabImageNameWithTag
Now it is generate by two const:
gitlabImageName
andgitlabImageTag
.We should generate it by
gitlabImageName
and the image tag fromoptions
.Anything else
Please feel free to ask any questions.
The text was updated successfully, but these errors were encountered: