mirror of
https://github.com/holos-run/holos.git
synced 2026-03-20 09:15:02 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d2984a635 |
@@ -11,6 +11,7 @@
|
|||||||
"admissionregistration",
|
"admissionregistration",
|
||||||
"alertmanager",
|
"alertmanager",
|
||||||
"alertmanagers",
|
"alertmanagers",
|
||||||
|
"anchore",
|
||||||
"anthos",
|
"anthos",
|
||||||
"apiextensions",
|
"apiextensions",
|
||||||
"apimachinery",
|
"apimachinery",
|
||||||
@@ -75,6 +76,7 @@
|
|||||||
"deploymentruntimeconfig",
|
"deploymentruntimeconfig",
|
||||||
"destinationrule",
|
"destinationrule",
|
||||||
"destinationrules",
|
"destinationrules",
|
||||||
|
"devel",
|
||||||
"devicecode",
|
"devicecode",
|
||||||
"dnsmasq",
|
"dnsmasq",
|
||||||
"dscacheutil",
|
"dscacheutil",
|
||||||
@@ -137,6 +139,7 @@
|
|||||||
"httproute",
|
"httproute",
|
||||||
"httproutes",
|
"httproutes",
|
||||||
"iampolicygenerator",
|
"iampolicygenerator",
|
||||||
|
"incpatch",
|
||||||
"Infima",
|
"Infima",
|
||||||
"intstr",
|
"intstr",
|
||||||
"isatty",
|
"isatty",
|
||||||
@@ -256,6 +259,7 @@
|
|||||||
"rolebinding",
|
"rolebinding",
|
||||||
"rootfs",
|
"rootfs",
|
||||||
"ropc",
|
"ropc",
|
||||||
|
"sboms",
|
||||||
"seccomp",
|
"seccomp",
|
||||||
"secretargs",
|
"secretargs",
|
||||||
"SECRETKEY",
|
"SECRETKEY",
|
||||||
|
|||||||
27
.github/workflows/release.yaml
vendored
27
.github/workflows/release.yaml
vendored
@@ -35,6 +35,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
go-version: stable
|
go-version: stable
|
||||||
|
|
||||||
|
- name: Setup Syft
|
||||||
|
uses: anchore/sbom-action/download-syft@1ca97d9028b51809cf6d3c934c3e160716e1b605 # v0.17.5
|
||||||
|
|
||||||
# Necessary to run these outside of goreleaser, otherwise
|
# Necessary to run these outside of goreleaser, otherwise
|
||||||
# /home/runner/_work/holos/holos/internal/frontend/node_modules/.bin/protoc-gen-connect-query is not in PATH
|
# /home/runner/_work/holos/holos/internal/frontend/node_modules/.bin/protoc-gen-connect-query is not in PATH
|
||||||
- name: Install Tools
|
- name: Install Tools
|
||||||
@@ -54,11 +57,31 @@ jobs:
|
|||||||
- name: Git diff
|
- name: Git diff
|
||||||
run: git diff
|
run: git diff
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- uses: actions/create-github-app-token@v1
|
||||||
|
id: app-token
|
||||||
|
with:
|
||||||
|
owner: ${{ github.repository_owner }}
|
||||||
|
app-id: ${{ vars.GORELEASER_APP_ID }}
|
||||||
|
private-key: ${{ secrets.GORELEASER_APP_PRIVATE_KEY }}
|
||||||
|
|
||||||
|
- name: Run GoReleaser if tag
|
||||||
|
if: github.ref_type == 'tag'
|
||||||
uses: goreleaser/goreleaser-action@v5
|
uses: goreleaser/goreleaser-action@v5
|
||||||
with:
|
with:
|
||||||
distribution: goreleaser
|
distribution: goreleaser
|
||||||
version: latest
|
version: '~> v2'
|
||||||
args: release --clean
|
args: release --clean
|
||||||
env:
|
env:
|
||||||
|
HOMEBREW_TAP_GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Run GoReleaser if branch
|
||||||
|
if: github.ref_type == 'branch' && github.ref == 'refs/heads/release'
|
||||||
|
uses: goreleaser/goreleaser-action@v5
|
||||||
|
with:
|
||||||
|
distribution: goreleaser
|
||||||
|
version: '~> v2'
|
||||||
|
args: release --clean --nightly
|
||||||
|
env:
|
||||||
|
HOMEBREW_TAP_GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|
||||||
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
|
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
|
||||||
|
|
||||||
version: 1
|
version: 2
|
||||||
|
|
||||||
before:
|
before:
|
||||||
hooks:
|
hooks:
|
||||||
@@ -25,6 +25,24 @@ builds:
|
|||||||
- amd64
|
- amd64
|
||||||
- arm64
|
- arm64
|
||||||
|
|
||||||
|
# .goreleaser.yml
|
||||||
|
nightly:
|
||||||
|
# Default: `{{ incpatch .Version }}-{{ .ShortCommit }}-nightly`.
|
||||||
|
# Templates: allowed.
|
||||||
|
version_template: "{{ .Version }}-{{ .ShortCommit }}-devel"
|
||||||
|
|
||||||
|
# Tag name to create if publish_release is enabled.
|
||||||
|
tag_name: devel
|
||||||
|
|
||||||
|
# Whether to publish a release or not.
|
||||||
|
# Only works on GitHub.
|
||||||
|
publish_release: true
|
||||||
|
|
||||||
|
# Whether to delete previous pre-releases for the same `tag_name` when
|
||||||
|
# releasing.
|
||||||
|
# This allows you to keep a single pre-release.
|
||||||
|
keep_single_release: true
|
||||||
|
|
||||||
signs:
|
signs:
|
||||||
- artifacts: checksum
|
- artifacts: checksum
|
||||||
args: ["-u", "code-signing-key@openinfrastructure.co", "--output", "${signature}", "--detach-sign", "${artifact}"]
|
args: ["-u", "code-signing-key@openinfrastructure.co", "--output", "${signature}", "--detach-sign", "${artifact}"]
|
||||||
@@ -50,3 +68,39 @@ changelog:
|
|||||||
exclude:
|
exclude:
|
||||||
- "^docs:"
|
- "^docs:"
|
||||||
- "^test:"
|
- "^test:"
|
||||||
|
|
||||||
|
source:
|
||||||
|
enabled: true
|
||||||
|
name_template: '{{ .ProjectName }}_{{ .Version }}_source_code'
|
||||||
|
|
||||||
|
sboms:
|
||||||
|
- id: source
|
||||||
|
artifacts: source
|
||||||
|
documents:
|
||||||
|
- "{{ .ProjectName }}_{{ .Version }}_sbom.spdx.json"
|
||||||
|
|
||||||
|
brews:
|
||||||
|
- name: holos
|
||||||
|
repository:
|
||||||
|
owner: holos-run
|
||||||
|
name: homebrew-tap
|
||||||
|
branch: main
|
||||||
|
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
|
||||||
|
directory: Formula
|
||||||
|
homepage: "https://holos.run"
|
||||||
|
description: "Holos CLI"
|
||||||
|
dependencies:
|
||||||
|
- name: helm
|
||||||
|
type: optional
|
||||||
|
- name: kubectl
|
||||||
|
type: optional
|
||||||
|
install: |
|
||||||
|
bin.install "holos"
|
||||||
|
bash_output = Utils.safe_popen_read(bin/"holos", "completion", "bash")
|
||||||
|
(bash_completion/"holos").write bash_output
|
||||||
|
zsh_output = Utils.safe_popen_read(bin/"holos", "completion", "zsh")
|
||||||
|
(zsh_completion/"holos").write zsh_output
|
||||||
|
fish_output = Utils.safe_popen_read(bin/"holos", "completion", "fish")
|
||||||
|
(fish_completion/"holos.fish").write fish_output
|
||||||
|
test: |
|
||||||
|
system "#{bin}/holos version"
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1
|
2
|
||||||
|
|||||||
Reference in New Issue
Block a user