ci: parallel macOS CGO launcher build, lowercase Docker tags, conditional Docker Hub login
- Add build-macos-launcher job (runs on macOS, parallel with GoReleaser) that builds the CGO-enabled launcher with systray support, signs and notarizes it via rcodesign, then uploads as artifact. - Add patch-macos-archives job (runs on cheap Linux runner, needs both GoReleaser and build-macos-launcher) that downloads the launcher artifact and darwin release archives, replaces the launcher binary, and re-uploads the patched archives. - Fix Docker image tag errors: GITHUB_REPOSITORY_OWNER is immutable in GitHub Actions. Introduce REPO_OWNER (lowercase) in workflows and reference it in .goreleaser.yaml for GHCR image names and nfpms homepage. - Make Docker Hub login conditional on DOCKERHUB_USERNAME secret being set, so forks without Docker Hub credentials don't fail. - Make Docker Hub image in goreleaser conditional on DOCKERHUB_IMAGE_NAME being non-empty (empty image names are ignored by GoReleaser). Verified on fork: both nightly and release workflows pass all jobs. Nightly: https://github.com/BeaconCat/picoclaw/actions/runs/24848808843 Release: https://github.com/BeaconCat/picoclaw/actions/runs/24849753787
This commit is contained in:
parent
f440047263
commit
5621e7e159
3 changed files with 313 additions and 8 deletions
160
.github/workflows/nightly.yml
vendored
160
.github/workflows/nightly.yml
vendored
|
|
@ -74,7 +74,10 @@ jobs:
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
|
if: env.DOCKERHUB_USERNAME != ''
|
||||||
uses: docker/login-action@v4
|
uses: docker/login-action@v4
|
||||||
|
env:
|
||||||
|
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
with:
|
with:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
|
@ -86,6 +89,10 @@ jobs:
|
||||||
- name: Create local tag for GoReleaser
|
- name: Create local tag for GoReleaser
|
||||||
run: git tag "${{ steps.version.outputs.version }}"
|
run: git tag "${{ steps.version.outputs.version }}"
|
||||||
|
|
||||||
|
- name: Lowercase owner for Docker tags
|
||||||
|
id: repo
|
||||||
|
run: echo "owner=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v7
|
uses: goreleaser/goreleaser-action@v7
|
||||||
with:
|
with:
|
||||||
|
|
@ -94,7 +101,7 @@ jobs:
|
||||||
args: release --clean
|
args: release --clean
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
|
REPO_OWNER: ${{ steps.repo.outputs.owner }}
|
||||||
DOCKERHUB_IMAGE_NAME: ${{ vars.DOCKERHUB_REPOSITORY }}
|
DOCKERHUB_IMAGE_NAME: ${{ vars.DOCKERHUB_REPOSITORY }}
|
||||||
GOVERSION: ${{ steps.setup-go.outputs.go-version }}
|
GOVERSION: ${{ steps.setup-go.outputs.go-version }}
|
||||||
GORELEASER_CURRENT_TAG: ${{ steps.version.outputs.version }}
|
GORELEASER_CURRENT_TAG: ${{ steps.version.outputs.version }}
|
||||||
|
|
@ -144,3 +151,154 @@ jobs:
|
||||||
--prerelease \
|
--prerelease \
|
||||||
--latest=false \
|
--latest=false \
|
||||||
"${ASSETS[@]}"
|
"${ASSETS[@]}"
|
||||||
|
|
||||||
|
build-macos-launcher:
|
||||||
|
name: Build macOS Launcher (${{ matrix.arch_name }})
|
||||||
|
runs-on: macos-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- goarch: arm64
|
||||||
|
arch_name: arm64
|
||||||
|
- goarch: amd64
|
||||||
|
arch_name: x86_64
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup Go from go.mod
|
||||||
|
uses: actions/setup-go@v6
|
||||||
|
with:
|
||||||
|
go-version-file: go.mod
|
||||||
|
|
||||||
|
- name: Setup pnpm
|
||||||
|
uses: pnpm/action-setup@v6
|
||||||
|
with:
|
||||||
|
version: 10.33.0
|
||||||
|
run_install: false
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v6
|
||||||
|
with:
|
||||||
|
node-version: 22
|
||||||
|
cache: pnpm
|
||||||
|
cache-dependency-path: web/frontend/pnpm-lock.yaml
|
||||||
|
|
||||||
|
- name: Build frontend
|
||||||
|
run: |
|
||||||
|
cd web/frontend
|
||||||
|
CI=true pnpm install --frozen-lockfile
|
||||||
|
pnpm build:backend
|
||||||
|
|
||||||
|
- name: Compute version
|
||||||
|
id: version
|
||||||
|
run: |
|
||||||
|
DATE=$(date -u +%Y%m%d)
|
||||||
|
SHA=$(git rev-parse --short=8 HEAD)
|
||||||
|
BASE_VERSION=$(git describe --tags --match "v*" --exclude "*nightly*" --abbrev=0 2>/dev/null || true)
|
||||||
|
if [ -z "$BASE_VERSION" ] || [ "$BASE_VERSION" = "v0.0.0" ]; then
|
||||||
|
VERSION="v0.0.0-nightly.${DATE}.${SHA}"
|
||||||
|
else
|
||||||
|
VERSION="${BASE_VERSION}-nightly.${DATE}.${SHA}"
|
||||||
|
fi
|
||||||
|
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
- name: Build picoclaw-launcher with CGO
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: "1"
|
||||||
|
GOOS: darwin
|
||||||
|
GOARCH: ${{ matrix.goarch }}
|
||||||
|
run: |
|
||||||
|
SDK_PATH=$(xcrun --show-sdk-path)
|
||||||
|
export CGO_CFLAGS="-isysroot ${SDK_PATH} -mmacosx-version-min=11.0"
|
||||||
|
export CGO_LDFLAGS="-isysroot ${SDK_PATH}"
|
||||||
|
|
||||||
|
go generate ./...
|
||||||
|
go build -tags "goolm,stdjson" \
|
||||||
|
-ldflags "-s -w \
|
||||||
|
-X github.com/sipeed/picoclaw/pkg/config.Version=${{ steps.version.outputs.version }} \
|
||||||
|
-X github.com/sipeed/picoclaw/pkg/config.GitCommit=$(git rev-parse --short HEAD) \
|
||||||
|
-X github.com/sipeed/picoclaw/pkg/config.BuildTime=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
|
||||||
|
-o picoclaw-launcher-cgo \
|
||||||
|
./web/backend
|
||||||
|
|
||||||
|
- name: Sign and notarize launcher binary
|
||||||
|
if: env.MACOS_SIGN_P12 != ''
|
||||||
|
env:
|
||||||
|
MACOS_SIGN_P12: ${{ secrets.MACOS_SIGN_P12 }}
|
||||||
|
MACOS_SIGN_PASSWORD: ${{ secrets.MACOS_SIGN_PASSWORD }}
|
||||||
|
MACOS_NOTARY_ISSUER_ID: ${{ secrets.MACOS_NOTARY_ISSUER_ID }}
|
||||||
|
MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }}
|
||||||
|
MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }}
|
||||||
|
run: |
|
||||||
|
pip3 install rcodesign
|
||||||
|
|
||||||
|
echo "$MACOS_SIGN_P12" | base64 -d > cert.p12
|
||||||
|
|
||||||
|
rcodesign sign \
|
||||||
|
--p12-file cert.p12 \
|
||||||
|
--p12-password "$MACOS_SIGN_PASSWORD" \
|
||||||
|
picoclaw-launcher-cgo
|
||||||
|
|
||||||
|
echo "$MACOS_NOTARY_KEY" > notary-key.p8
|
||||||
|
|
||||||
|
rcodesign notary-submit \
|
||||||
|
--api-key-path notary-key.p8 \
|
||||||
|
--api-issuer "$MACOS_NOTARY_ISSUER_ID" \
|
||||||
|
--wait \
|
||||||
|
picoclaw-launcher-cgo
|
||||||
|
|
||||||
|
rm -f cert.p12 notary-key.p8
|
||||||
|
|
||||||
|
- name: Upload launcher artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: macos-launcher-${{ matrix.arch_name }}
|
||||||
|
path: picoclaw-launcher-cgo
|
||||||
|
retention-days: 1
|
||||||
|
|
||||||
|
patch-macos-archives:
|
||||||
|
name: Patch macOS Archives
|
||||||
|
needs: [nightly, build-macos-launcher]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- arch_name: arm64
|
||||||
|
- arch_name: x86_64
|
||||||
|
steps:
|
||||||
|
- name: Download launcher artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: macos-launcher-${{ matrix.arch_name }}
|
||||||
|
|
||||||
|
- name: Patch darwin release archive
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
ARCHIVE_NAME="picoclaw_Darwin_${{ matrix.arch_name }}.tar.gz"
|
||||||
|
|
||||||
|
gh release download nightly \
|
||||||
|
--repo "${{ github.repository }}" \
|
||||||
|
--pattern "${ARCHIVE_NAME}" \
|
||||||
|
--dir ./patch-tmp
|
||||||
|
|
||||||
|
mkdir -p ./patch-extracted
|
||||||
|
tar xzf "./patch-tmp/${ARCHIVE_NAME}" -C ./patch-extracted
|
||||||
|
|
||||||
|
cp picoclaw-launcher-cgo ./patch-extracted/picoclaw-launcher
|
||||||
|
chmod +x ./patch-extracted/picoclaw-launcher
|
||||||
|
|
||||||
|
tar czf "${ARCHIVE_NAME}" -C ./patch-extracted .
|
||||||
|
|
||||||
|
gh release upload nightly \
|
||||||
|
--repo "${{ github.repository }}" \
|
||||||
|
"${ARCHIVE_NAME}" --clobber
|
||||||
|
|
||||||
|
echo "✅ Patched ${ARCHIVE_NAME} with CGO launcher (systray enabled)"
|
||||||
|
|
|
||||||
151
.github/workflows/release.yml
vendored
151
.github/workflows/release.yml
vendored
|
|
@ -80,7 +80,10 @@ jobs:
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
|
if: env.DOCKERHUB_USERNAME != ''
|
||||||
uses: docker/login-action@v4
|
uses: docker/login-action@v4
|
||||||
|
env:
|
||||||
|
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
with:
|
with:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
|
@ -89,6 +92,10 @@ jobs:
|
||||||
- name: Install zip
|
- name: Install zip
|
||||||
run: sudo apt-get install -y zip
|
run: sudo apt-get install -y zip
|
||||||
|
|
||||||
|
- name: Lowercase owner for Docker tags
|
||||||
|
id: repo
|
||||||
|
run: echo "owner=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v7
|
uses: goreleaser/goreleaser-action@v7
|
||||||
with:
|
with:
|
||||||
|
|
@ -97,7 +104,7 @@ jobs:
|
||||||
args: release --clean
|
args: release --clean
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
GITHUB_REPOSITORY_OWNER: ${{ github.repository_owner }}
|
REPO_OWNER: ${{ steps.repo.outputs.owner }}
|
||||||
DOCKERHUB_IMAGE_NAME: ${{ vars.DOCKERHUB_REPOSITORY }}
|
DOCKERHUB_IMAGE_NAME: ${{ vars.DOCKERHUB_REPOSITORY }}
|
||||||
GOVERSION: ${{ steps.setup-go.outputs.go-version }}
|
GOVERSION: ${{ steps.setup-go.outputs.go-version }}
|
||||||
INCLUDE_ANDROID_BUNDLE: "true"
|
INCLUDE_ANDROID_BUNDLE: "true"
|
||||||
|
|
@ -116,9 +123,149 @@ jobs:
|
||||||
--draft=${{ inputs.draft }} \
|
--draft=${{ inputs.draft }} \
|
||||||
--prerelease=${{ inputs.prerelease }}
|
--prerelease=${{ inputs.prerelease }}
|
||||||
|
|
||||||
|
build-macos-launcher:
|
||||||
|
name: Build macOS Launcher (${{ matrix.arch_name }})
|
||||||
|
runs-on: macos-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- goarch: arm64
|
||||||
|
arch_name: arm64
|
||||||
|
- goarch: amd64
|
||||||
|
arch_name: x86_64
|
||||||
|
steps:
|
||||||
|
- name: Checkout tag
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
ref: ${{ inputs.tag }}
|
||||||
|
|
||||||
|
- name: Setup Go from go.mod
|
||||||
|
uses: actions/setup-go@v6
|
||||||
|
with:
|
||||||
|
go-version-file: go.mod
|
||||||
|
|
||||||
|
- name: Setup pnpm
|
||||||
|
uses: pnpm/action-setup@v6
|
||||||
|
with:
|
||||||
|
version: 10.33.0
|
||||||
|
run_install: false
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v6
|
||||||
|
with:
|
||||||
|
node-version: 22
|
||||||
|
cache: pnpm
|
||||||
|
cache-dependency-path: web/frontend/pnpm-lock.yaml
|
||||||
|
|
||||||
|
- name: Build frontend
|
||||||
|
run: |
|
||||||
|
cd web/frontend
|
||||||
|
CI=true pnpm install --frozen-lockfile
|
||||||
|
pnpm build:backend
|
||||||
|
|
||||||
|
- name: Build picoclaw-launcher with CGO
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: "1"
|
||||||
|
GOOS: darwin
|
||||||
|
GOARCH: ${{ matrix.goarch }}
|
||||||
|
run: |
|
||||||
|
SDK_PATH=$(xcrun --show-sdk-path)
|
||||||
|
export CGO_CFLAGS="-isysroot ${SDK_PATH} -mmacosx-version-min=11.0"
|
||||||
|
export CGO_LDFLAGS="-isysroot ${SDK_PATH}"
|
||||||
|
|
||||||
|
go generate ./...
|
||||||
|
go build -tags "goolm,stdjson" \
|
||||||
|
-ldflags "-s -w \
|
||||||
|
-X github.com/sipeed/picoclaw/pkg/config.Version=${{ inputs.tag }} \
|
||||||
|
-X github.com/sipeed/picoclaw/pkg/config.GitCommit=$(git rev-parse --short HEAD) \
|
||||||
|
-X github.com/sipeed/picoclaw/pkg/config.BuildTime=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
|
||||||
|
-o picoclaw-launcher-cgo \
|
||||||
|
./web/backend
|
||||||
|
|
||||||
|
- name: Sign and notarize launcher binary
|
||||||
|
if: env.MACOS_SIGN_P12 != ''
|
||||||
|
env:
|
||||||
|
MACOS_SIGN_P12: ${{ secrets.MACOS_SIGN_P12 }}
|
||||||
|
MACOS_SIGN_PASSWORD: ${{ secrets.MACOS_SIGN_PASSWORD }}
|
||||||
|
MACOS_NOTARY_ISSUER_ID: ${{ secrets.MACOS_NOTARY_ISSUER_ID }}
|
||||||
|
MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }}
|
||||||
|
MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }}
|
||||||
|
run: |
|
||||||
|
pip3 install rcodesign
|
||||||
|
|
||||||
|
echo "$MACOS_SIGN_P12" | base64 -d > cert.p12
|
||||||
|
|
||||||
|
rcodesign sign \
|
||||||
|
--p12-file cert.p12 \
|
||||||
|
--p12-password "$MACOS_SIGN_PASSWORD" \
|
||||||
|
picoclaw-launcher-cgo
|
||||||
|
|
||||||
|
echo "$MACOS_NOTARY_KEY" > notary-key.p8
|
||||||
|
|
||||||
|
rcodesign notary-submit \
|
||||||
|
--api-key-path notary-key.p8 \
|
||||||
|
--api-issuer "$MACOS_NOTARY_ISSUER_ID" \
|
||||||
|
--wait \
|
||||||
|
picoclaw-launcher-cgo
|
||||||
|
|
||||||
|
rm -f cert.p12 notary-key.p8
|
||||||
|
|
||||||
|
- name: Upload launcher artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: macos-launcher-${{ matrix.arch_name }}
|
||||||
|
path: picoclaw-launcher-cgo
|
||||||
|
retention-days: 1
|
||||||
|
|
||||||
|
patch-macos-archives:
|
||||||
|
name: Patch macOS Archives
|
||||||
|
needs: [release, build-macos-launcher]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- arch_name: arm64
|
||||||
|
- arch_name: x86_64
|
||||||
|
steps:
|
||||||
|
- name: Download launcher artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: macos-launcher-${{ matrix.arch_name }}
|
||||||
|
|
||||||
|
- name: Patch darwin release archive
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
TAG: ${{ inputs.tag }}
|
||||||
|
run: |
|
||||||
|
ARCHIVE_NAME="picoclaw_Darwin_${{ matrix.arch_name }}.tar.gz"
|
||||||
|
|
||||||
|
gh release download "${TAG}" \
|
||||||
|
--repo "${{ github.repository }}" \
|
||||||
|
--pattern "${ARCHIVE_NAME}" \
|
||||||
|
--dir ./patch-tmp
|
||||||
|
|
||||||
|
mkdir -p ./patch-extracted
|
||||||
|
tar xzf "./patch-tmp/${ARCHIVE_NAME}" -C ./patch-extracted
|
||||||
|
|
||||||
|
cp picoclaw-launcher-cgo ./patch-extracted/picoclaw-launcher
|
||||||
|
chmod +x ./patch-extracted/picoclaw-launcher
|
||||||
|
|
||||||
|
tar czf "${ARCHIVE_NAME}" -C ./patch-extracted .
|
||||||
|
|
||||||
|
gh release upload "${TAG}" \
|
||||||
|
--repo "${{ github.repository }}" \
|
||||||
|
"${ARCHIVE_NAME}" --clobber
|
||||||
|
|
||||||
|
echo "Patched ${ARCHIVE_NAME} with CGO launcher (systray enabled)"
|
||||||
|
|
||||||
upload-tos:
|
upload-tos:
|
||||||
name: Upload to TOS
|
name: Upload to TOS
|
||||||
needs: release
|
needs: [release, patch-macos-archives]
|
||||||
if: ${{ inputs.upload_tos }}
|
if: ${{ inputs.upload_tos }}
|
||||||
uses: ./.github/workflows/upload-tos.yml
|
uses: ./.github/workflows/upload-tos.yml
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -151,8 +151,8 @@ dockers_v2:
|
||||||
ids:
|
ids:
|
||||||
- picoclaw
|
- picoclaw
|
||||||
images:
|
images:
|
||||||
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/picoclaw"
|
- "ghcr.io/{{ .Env.REPO_OWNER }}/picoclaw"
|
||||||
- 'docker.io/{{ .Env.DOCKERHUB_IMAGE_NAME }}'
|
- '{{ with .Env.DOCKERHUB_IMAGE_NAME }}docker.io/{{ . }}{{ end }}'
|
||||||
tags:
|
tags:
|
||||||
- '{{ if isEnvSet "NIGHTLY_BUILD" }}nightly{{ else }}{{ .Tag }}{{ end }}'
|
- '{{ if isEnvSet "NIGHTLY_BUILD" }}nightly{{ else }}{{ .Tag }}{{ end }}'
|
||||||
- '{{ if isEnvSet "NIGHTLY_BUILD" }}nightly{{ else }}latest{{ end }}'
|
- '{{ if isEnvSet "NIGHTLY_BUILD" }}nightly{{ else }}latest{{ end }}'
|
||||||
|
|
@ -168,8 +168,8 @@ dockers_v2:
|
||||||
- picoclaw-launcher
|
- picoclaw-launcher
|
||||||
- picoclaw-launcher-tui
|
- picoclaw-launcher-tui
|
||||||
images:
|
images:
|
||||||
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/picoclaw"
|
- "ghcr.io/{{ .Env.REPO_OWNER }}/picoclaw"
|
||||||
- 'docker.io/{{ .Env.DOCKERHUB_IMAGE_NAME }}'
|
- '{{ with .Env.DOCKERHUB_IMAGE_NAME }}docker.io/{{ . }}{{ end }}'
|
||||||
tags:
|
tags:
|
||||||
- '{{ if isEnvSet "NIGHTLY_BUILD" }}nightly-launcher{{ else }}{{ .Tag }}-launcher{{ end }}'
|
- '{{ if isEnvSet "NIGHTLY_BUILD" }}nightly-launcher{{ else }}{{ .Tag }}-launcher{{ end }}'
|
||||||
- '{{ if isEnvSet "NIGHTLY_BUILD" }}nightly-launcher{{ else }}launcher{{ end }}'
|
- '{{ if isEnvSet "NIGHTLY_BUILD" }}nightly-launcher{{ else }}launcher{{ end }}'
|
||||||
|
|
@ -224,7 +224,7 @@ nfpms:
|
||||||
{{- else if eq .Arch "arm" }}armv{{ .Arm }}
|
{{- else if eq .Arch "arm" }}armv{{ .Arm }}
|
||||||
{{- else }}{{ .Arch }}{{ end }}
|
{{- else }}{{ .Arch }}{{ end }}
|
||||||
vendor: picoclaw
|
vendor: picoclaw
|
||||||
homepage: https://github.com/{{ .Env.GITHUB_REPOSITORY_OWNER }}/picoclaw
|
homepage: https://github.com/{{ .Env.REPO_OWNER }}/picoclaw
|
||||||
maintainer: picoclaw contributors
|
maintainer: picoclaw contributors
|
||||||
description: picoclaw - a tool for managing and running tasks
|
description: picoclaw - a tool for managing and running tasks
|
||||||
license: MIT
|
license: MIT
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue