diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d7ce3be..b4562b0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/.goreleaser.yml b/.goreleaser.yml index 26d578c..fee4521 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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}}" diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 9cf7253..0000000 --- a/Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM scratch -COPY seed / -ENTRYPOINT ["/seed"] diff --git a/README.md b/README.md index 5d7756f..7de0676 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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) @@ -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)