0
0
mirror of https://github.com/thegeeklab/wp-docker-buildx.git synced 2024-11-28 08:10:36 +00:00

cleanup unused code

This commit is contained in:
Robert Kaussow 2021-07-03 15:09:12 +02:00
parent 2e0e0dd7d7
commit 29f1707797
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -41,7 +41,6 @@ type Login struct {
// Build defines Docker build parameters. // Build defines Docker build parameters.
type Build struct { type Build struct {
Remote string // Git remote URL Remote string // Git remote URL
Name string // Git commit sha used as docker default named tag
Ref string // Git commit ref Ref string // Git commit ref
Branch string // Git repository branch Branch string // Git repository branch
Dockerfile string // Docker build Dockerfile Dockerfile string // Docker build Dockerfile
@ -74,11 +73,6 @@ type Settings struct {
// Validate handles the settings validation of the plugin. // Validate handles the settings validation of the plugin.
func (p *Plugin) Validate() error { func (p *Plugin) Validate() error {
p.settings.Build.Name = "00000000"
if p.pipeline.Commit.SHA != "" {
p.settings.Build.Name = p.pipeline.Commit.SHA
}
p.settings.Build.Branch = p.pipeline.Repo.Branch p.settings.Build.Branch = p.pipeline.Repo.Branch
p.settings.Build.Ref = p.pipeline.Commit.Ref p.settings.Build.Ref = p.pipeline.Commit.Ref
p.settings.Daemon.Registry = p.settings.Login.Registry p.settings.Daemon.Registry = p.settings.Login.Registry