name: Release
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: write
jobs:
project:
uses: 42ByteLabs/.github/.github/workflows/project.yml@main
secrets: inherit
cargo-publish:
uses: 42ByteLabs/.github/.github/workflows/cargo-publish.yml@main
if: ${{ needs.project.outputs.release == 'true' }}
needs: [ project ]
secrets: inherit
with:
crate: konarr
crates: konarr,konarr-server,konarr-cli
container-server:
uses: 42ByteLabs/.github/.github/workflows/container.yml@main
if: ${{ needs.project.outputs.release == 'true' }}
needs: [ project ]
secrets: inherit
permissions:
id-token: write
contents: write
packages: write
security-events: write
attestations: write
with:
version: ${{ needs.project.outputs.version }}
container-name: "42bytelabs/konarr"
docker-file: "./server/Dockerfile"
container-cli:
uses: 42ByteLabs/.github/.github/workflows/container.yml@main
if: ${{ needs.project.outputs.release == 'true' }}
needs: [ project ]
secrets: inherit
permissions:
id-token: write
contents: write
packages: write
security-events: write
attestations: write
with:
version: ${{ needs.project.outputs.version }}
container-name: "42bytelabs/konarr-cli"
docker-file: "./cli/Dockerfile"