Compare commits

...

5 Commits

5 changed files with 20 additions and 55 deletions
+1 -2
View File
@@ -22,5 +22,4 @@ jobs:
docker-enabled: true docker-enabled: true
rolling-release-tag: "v1" rolling-release-tag: "v1"
semver-config: "config-release.yaml" semver-config: "config-release.yaml"
secrets: secrets: inherit
homebrew-tap-token: ${{ secrets.HOMEBREW_TAP_TOKEN }}
+14 -49
View File
@@ -24,7 +24,7 @@ builds:
archives: archives:
- id: semver-gen - id: semver-gen
formats: [tar.gz] formats: [tar.gz]
name_template: "semver-gen-{{ .Version }}-{{ .Os }}-{{ .Arch }}" name_template: "semver-gen-{{ .Os }}-{{ .Arch }}"
format_overrides: format_overrides:
- goos: windows - goos: windows
formats: [zip] formats: [zip]
@@ -34,7 +34,7 @@ archives:
- config.yaml - config.yaml
checksum: checksum:
name_template: "semver-gen-{{ .Version }}-checksums.txt" name_template: "semver-gen-checksums.txt"
algorithm: sha256 algorithm: sha256
changelog: changelog:
@@ -55,59 +55,24 @@ release:
draft: false draft: false
prerelease: auto prerelease: auto
dockers: dockers_v2:
- id: semver-gen-amd64 - images:
goos: linux - "ghcr.io/lukaszraczylo/semver-generator"
goarch: amd64 tags:
ids: - "{{ .Version }}"
- semver-gen - "latest"
image_templates: - "v1"
- "ghcr.io/lukaszraczylo/semver-generator:{{ .Version }}-amd64" platforms:
- "ghcr.io/lukaszraczylo/semver-generator:latest-amd64" - linux/amd64
- "ghcr.io/lukaszraczylo/semver-generator:v1-amd64" - linux/arm64
dockerfile: Dockerfile.goreleaser dockerfile: Dockerfile.goreleaser
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
extra_files: extra_files:
- config-release.yaml - config-release.yaml
- entrypoint.sh - entrypoint.sh
- id: semver-gen-arm64
goos: linux
goarch: arm64
ids:
- semver-gen
image_templates:
- "ghcr.io/lukaszraczylo/semver-generator:{{ .Version }}-arm64"
- "ghcr.io/lukaszraczylo/semver-generator:latest-arm64"
- "ghcr.io/lukaszraczylo/semver-generator:v1-arm64"
dockerfile: Dockerfile.goreleaser
use: buildx
build_flag_templates:
- "--platform=linux/arm64"
extra_files:
- config-release.yaml
- entrypoint.sh
docker_manifests:
- name_template: "ghcr.io/lukaszraczylo/semver-generator:{{ .Version }}"
image_templates:
- "ghcr.io/lukaszraczylo/semver-generator:{{ .Version }}-amd64"
- "ghcr.io/lukaszraczylo/semver-generator:{{ .Version }}-arm64"
- name_template: "ghcr.io/lukaszraczylo/semver-generator:latest"
image_templates:
- "ghcr.io/lukaszraczylo/semver-generator:latest-amd64"
- "ghcr.io/lukaszraczylo/semver-generator:latest-arm64"
- name_template: "ghcr.io/lukaszraczylo/semver-generator:v1"
image_templates:
- "ghcr.io/lukaszraczylo/semver-generator:v1-amd64"
- "ghcr.io/lukaszraczylo/semver-generator:v1-arm64"
homebrew_casks: homebrew_casks:
- repository: - name: semver-generator
repository:
owner: lukaszraczylo owner: lukaszraczylo
name: homebrew-taps name: homebrew-taps
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}" token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
+2 -1
View File
@@ -1,5 +1,6 @@
FROM ubuntu:jammy FROM ubuntu:jammy
COPY semver-gen /go/src/app/semver-gen ARG TARGETPLATFORM
COPY ${TARGETPLATFORM}/semver-gen /go/src/app/semver-gen
COPY config-release.yaml /go/src/app/config.yaml COPY config-release.yaml /go/src/app/config.yaml
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh
+2 -2
View File
@@ -52,7 +52,7 @@ export GITHUB_TOKEN=yourPersonalApiToken
##### Homebrew (macOS) ##### Homebrew (macOS)
```bash ```bash
brew install --cask lukaszraczylo/taps/semver-gen brew install --cask lukaszraczylo/taps/semver-generator
``` ```
##### Manual Download ##### Manual Download
@@ -217,7 +217,7 @@ wording:
* `blacklist`: terms to ignore when processing commits. Any commit containing these terms will be skipped in version calculations. Useful for ignoring merge commits, feature branch names, and other unwanted triggers. * `blacklist`: terms to ignore when processing commits. Any commit containing these terms will be skipped in version calculations. Useful for ignoring merge commits, feature branch names, and other unwanted triggers.
* `wording`: words the program should look for in the git commits to increment (patch|minor|major) * `wording`: words the program should look for in the git commits to increment (patch|minor|major)
### Good to know ### Good to knows
* Word matching uses fuzzy search AND is case INSENSITIVE * Word matching uses fuzzy search AND is case INSENSITIVE
* I do not recommend using common words ( like "the" from the example configuration ) * I do not recommend using common words ( like "the" from the example configuration )
+1 -1
View File
@@ -260,7 +260,7 @@
<i class="fas fa-beer mr-2 text-amber-500"></i> <i class="fas fa-beer mr-2 text-amber-500"></i>
Homebrew (macOS) Homebrew (macOS)
</h3> </h3>
<pre class="bg-gray-900 text-gray-100 p-4 rounded-lg overflow-x-auto"><code>brew install --cask lukaszraczylo/taps/semver-gen</code></pre> <pre class="bg-gray-900 text-gray-100 p-4 rounded-lg overflow-x-auto"><code>brew install --cask lukaszraczylo/taps/semver-generator</code></pre>
</div> </div>
<div class="glass p-6 rounded-xl"> <div class="glass p-6 rounded-xl">
<h3 class="font-semibold text-gray-900 dark:text-gray-100 mb-3 flex items-center"> <h3 class="font-semibold text-gray-900 dark:text-gray-100 mb-3 flex items-center">