mirror of
https://github.com/bitwarden/self-host.git
synced 2026-06-28 06:15:46 +00:00
Allow Bitwarden lite to be built before release (#434)
This commit is contained in:
18
.github/workflows/build-bitwarden-lite.yml
vendored
18
.github/workflows/build-bitwarden-lite.yml
vendored
@@ -23,6 +23,24 @@ on:
|
||||
description: "Use the latest web version from version.json instead of branch"
|
||||
type: boolean
|
||||
default: false
|
||||
workflow_call:
|
||||
inputs:
|
||||
server_branch:
|
||||
description: "Server branch name (examples: 'main', 'rc', 'feature/sm')"
|
||||
type: string
|
||||
default: main
|
||||
web_branch:
|
||||
description: "Web client branch name (examples: 'main', 'rc', 'feature/sm')"
|
||||
type: string
|
||||
default: main
|
||||
use_latest_core_version:
|
||||
description: "Use the latest core version from version.json instead of branch"
|
||||
type: boolean
|
||||
default: false
|
||||
use_latest_web_version:
|
||||
description: "Use the latest web version from version.json instead of branch"
|
||||
type: boolean
|
||||
default: false
|
||||
pull_request:
|
||||
paths:
|
||||
- ".github/workflows/build-bitwarden-lite.yml"
|
||||
|
||||
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
@@ -403,11 +403,27 @@ jobs:
|
||||
uses: bitwarden/gh-actions/azure-logout@main
|
||||
|
||||
|
||||
build-lite-image:
|
||||
name: Build Bitwarden lite image
|
||||
uses: ./.github/workflows/build-bitwarden-lite.yml
|
||||
needs: update-versions
|
||||
permissions:
|
||||
id-token: write
|
||||
packages: write
|
||||
security-events: write
|
||||
with:
|
||||
use_latest_core_version: true
|
||||
use_latest_web_version: true
|
||||
secrets: inherit
|
||||
|
||||
|
||||
release-bitwarden-lite:
|
||||
name: Release Bitwarden lite
|
||||
runs-on: ubuntu-24.04
|
||||
timeout-minutes: 30
|
||||
needs: update-versions
|
||||
needs:
|
||||
- update-versions
|
||||
- build-lite-image
|
||||
env:
|
||||
_CORE_VERSION: ${{ needs.update-versions.outputs.core_release_tag }}
|
||||
permissions:
|
||||
|
||||
Reference in New Issue
Block a user