Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
required: false
type: boolean
default: false
imagesOnly:
description: "Only build and push Docker images (skip CLI releases, pinata bump, and CE packaging)"
required: false
type: boolean
default: false

jobs:
# ---------------------------------------------------------------------------
Expand Down Expand Up @@ -414,6 +419,7 @@
# Release CLI for Docker Desktop — build, sign & push CLI + Desktop module image
# ---------------------------------------------------------------------------
release-cli-desktop:
if: ${{ !inputs.imagesOnly }}
needs: [prepare, test]
runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -468,6 +474,7 @@
# Bump docker-model version in pinata and open a PR
# ---------------------------------------------------------------------------
bump-pinata:
if: ${{ !inputs.imagesOnly }}
needs: [prepare, release-cli-desktop]
runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -520,7 +527,7 @@
# deploy completed successfully.
# ---------------------------------------------------------------------------
release-cli-docker-ce-trigger:
if: ${{ !inputs.skipPackaging }}
if: ${{ !inputs.imagesOnly }}
needs: [prepare, release-cli-desktop]
runs-on: ubuntu-latest
permissions:
Expand Down Expand Up @@ -609,22 +616,23 @@
# server versions match the release tag.
# ---------------------------------------------------------------------------
verify-docker-ce:
if: ${{ !inputs.imagesOnly }}
needs: [prepare, release-cli-docker-ce-trigger, build]
runs-on: ubuntu-latest
environment: release-repo-deploy
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd

- name: Verify client and server versions
run: |
chmod +x scripts/test-docker-ce-installation.sh
./scripts/test-docker-ce-installation.sh "${{ needs.prepare.outputs.release_tag }}"

# ---------------------------------------------------------------------------
# Create GitHub Release with AI-generated release notes
# ---------------------------------------------------------------------------
github-release:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
needs: [prepare, release-notes, build, release-cli-desktop, bump-pinata, verify-docker-ce]
if: ${{ !cancelled() && !contains(needs.*.result, 'failure') }}
runs-on: ubuntu-latest
Expand Down
Loading