You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-07-13 01:30:50 +02:00
Merge branch 'master' into github-enterprise
This commit is contained in:
@ -171,6 +171,7 @@ type Docker struct {
|
|||||||
Image string `yaml:",omitempty"`
|
Image string `yaml:",omitempty"`
|
||||||
Dockerfile string `yaml:",omitempty"`
|
Dockerfile string `yaml:",omitempty"`
|
||||||
Latest bool `yaml:",omitempty"`
|
Latest bool `yaml:",omitempty"`
|
||||||
|
Files []string `yaml:"extra_files,omitempty"`
|
||||||
|
|
||||||
// Capture all undefined fields and should be empty after loading
|
// Capture all undefined fields and should be empty after loading
|
||||||
XXX map[string]interface{} `yaml:",inline"`
|
XXX map[string]interface{} `yaml:",inline"`
|
||||||
|
@ -52,6 +52,10 @@ dockers:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
# Also tag and push myuser/myimage:latest
|
# Also tag and push myuser/myimage:latest
|
||||||
latest: true
|
latest: true
|
||||||
|
# If your dockerfile copies more files other than the binary itself,
|
||||||
|
# you should list them here as well.
|
||||||
|
extra_files:
|
||||||
|
- config.yml
|
||||||
```
|
```
|
||||||
|
|
||||||
These settings should allow you to generate multiple docker images, using
|
These settings should allow you to generate multiple docker images, using
|
||||||
|
@ -5,7 +5,7 @@ title: Links
|
|||||||
- Follow the progress on [GitHub repository](https://github.com/goreleaser/goreleaser)
|
- Follow the progress on [GitHub repository](https://github.com/goreleaser/goreleaser)
|
||||||
- Follow [@caarlos0](https://twitter.com/caarlos0) on Twitter for updates
|
- Follow [@caarlos0](https://twitter.com/caarlos0) on Twitter for updates
|
||||||
- [Slack](https://gophers.slack.com/messages/goreleaser/) to chat about GoReleaser,
|
- [Slack](https://gophers.slack.com/messages/goreleaser/) to chat about GoReleaser,
|
||||||
quetions and etc. Join using [this link](https://invite.slack.golangbridge.org/).
|
questions and etc. Join using [this link](https://invite.slack.golangbridge.org/).
|
||||||
- [Contributing Guidelines](https://github.com/goreleaser/goreleaser/blob/master/CONTRIBUTING.md)
|
- [Contributing Guidelines](https://github.com/goreleaser/goreleaser/blob/master/CONTRIBUTING.md)
|
||||||
|
|
||||||
This project adheres to the Contributor Covenant
|
This project adheres to the Contributor Covenant
|
||||||
|
@ -71,6 +71,11 @@ func process(ctx *context.Context, folder string, docker config.Docker, binary c
|
|||||||
if err := os.Link(docker.Dockerfile, dockerfile); err != nil {
|
if err := os.Link(docker.Dockerfile, dockerfile); err != nil {
|
||||||
return errors.Wrap(err, "failed to link dockerfile")
|
return errors.Wrap(err, "failed to link dockerfile")
|
||||||
}
|
}
|
||||||
|
for _, file := range docker.Files {
|
||||||
|
if err := os.Link(file, filepath.Join(root, filepath.Base(file))); err != nil {
|
||||||
|
return errors.Wrapf(err, "failed to link extra file '%s'", file)
|
||||||
|
}
|
||||||
|
}
|
||||||
if err := dockerBuild(root, dockerfile, image); err != nil {
|
if err := dockerBuild(root, dockerfile, image); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user