Skip to content

Release crates (GHCR) #2

Release crates (GHCR)

Release crates (GHCR) #2

name: Release crates (GHCR)
on:
workflow_call:
inputs:
live-run:
type: string
required: false
repo:
type: string
required: true
version:
type: string
required: true
branch:
type: string
required: false
binary:
type: string
required: true
files:
type: string
required: true
platforms:
type: string
required: true
images:
type: string
required: true
labels:
type: string
required: false
no-build:
type: boolean
required: false
default: false
workflow_dispatch:
inputs:
live-run:
type: string
required: false
repo:
type: string
required: true
version:
type: string
required: true
branch:
type: string
required: false
binary:
type: string
required: true
files:
type: string
required: true
platforms:
type: string
required: true
images:
type: string
required: true
labels:
type: string
required: false
no-build:
type: boolean
required: false
default: false
jobs:
build:
if: ${{ !inputs.no-build }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [x86_64-unknown-linux-musl, aarch64-unknown-linux-musl]
steps:
- uses: eclipse-zenoh/ci/build-crates-standalone@main
with:
repo: ${{ inputs.repo }}
version: ${{ inputs.version }}
branch: ${{ inputs.branch }}
target: ${{ matrix.target }}
artifact-patterns: ${{ inputs.files }}
github-token: ${{ secrets.ZETTASCALE_BOT_PERSONAL_ACCESS_TOKEN }}
publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: ZettaScaleLabs/ci/publish-crates-docker@main
with:
repo: ${{ inputs.repo }}
version: ${{ inputs.version }}
live-run: ${{ inputs.live-run }}
files: ${{ inputs.files }}
binary: ${{ inputs.binary }}
platforms: ${{ inputs.platforms }}
images: ${{ inputs.images }}
labels: ${{ inputs.labels }}
username: zettascale-bot
password: ${{ secrets.ZETTASCALE_BOT_PERSONAL_ACCESS_TOKEN }}
github-token: ${{ secrets.BOT_TOKEN_WORKFLOW }}