Skip to content

Commit

Permalink
Remove releasing docker images, but extend FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared authored Jun 15, 2020
1 parent fe0c22b commit b7c5ebe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 22 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: 1.14
- run: docker login docker.pkg.github.com -u docker -p ${{ secrets.GITHUB_TOKEN }}
- uses: goreleaser/goreleaser-action@v2
with:
version: v0.138.0
Expand Down
15 changes: 0 additions & 15 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,3 @@ archives:
release:
github:
prerelease: auto
dockers:
- binaries:
- "{{ .ProjectName }}"
image_templates:
- "docker.pkg.github.com/golang-templates/seed/{{ .ProjectName }}:latest"
- "docker.pkg.github.com/golang-templates/seed/{{ .ProjectName }}:v{{ .Major }}"
- "docker.pkg.github.com/golang-templates/seed/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}"
- "docker.pkg.github.com/golang-templates/seed/{{ .ProjectName }}:v{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
3 changes: 0 additions & 3 deletions Dockerfile

This file was deleted.

9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ It includes:

1. Click the `Use this template` button (alt. clone or download this repository).
1. Replace all occurences of `golang-templates/seed` to `your_org/repo_name` in all files.
1. Replace all occurences of `seed` to `repo_name` in [Dockerfile](Dockerfile).
1. Change [LICENSE](LICENSE) and [README.md](README.md).

## Build
Expand All @@ -46,7 +45,6 @@ Notable files:
- [.vscode](.vscode) - Visual Studio Code configuration files
- [.golangci.yml](.golangci.yml) - golangci-lint configuration
- [.goreleaser.yml](.goreleaser.yml) - GoReleaser configuration
- [Dockerfile](Dockerfile) - Dockerfile used by GoReleaser to create a container image
- [install-tools.sh](install-tools.sh) - build tools installation script
- [Makefile](Makefile) - Make targets used for development, [CI build](.github/workflows) and [.vscode/tasks.json](.vscode/tasks.json)

Expand All @@ -63,12 +61,17 @@ The maintainer does not use GoLand. Fell free to create a pull request for [#2](
### Why GitHub Actions, not any other CI server

GitHub Actions is out-of-the-box if you are already using GitHub.
However, changing to any other CI server should be very simple, because this repository has build logic and tooling installation in Makefile. You can also use the `docker` make target to run the build inside a docker container.
However, changing to any other CI server should be very simple, because this repository has build logic and tooling installation in Makefile. You can also use the `docker` make target to run the build using a docker container.

### How can I use Make on Windows

Use [WSL (Windows Subsystem for Linux)](https://docs.microsoft.com/en-us/windows/wsl/install-win10) or try [Make Windows port](https://gist.github.com/evanwill/0207876c3243bbb6863e65ec5dc3f058).

### How can I create a Docker image, deb/rpm/snap package, Homebrew Tap, Scoop App Manifest etc.

Take a look at GoReleaser [docs](https://goreleaser.com/customization/) as well as [its repo](https://github.com/goreleaser/goreleaser/) how it is dogfooding its functionality.


### How can I create an application installation script

1. Install [GoDownloader](https://github.com/goreleaser/godownloader)
Expand Down

0 comments on commit b7c5ebe

Please sign in to comment.