Skip to content

Commit

Permalink
Add the ability to publish container for specific commit sha (#799)
Browse files Browse the repository at this point in the history
For debugging purposes we need to be able to deploy a specific commit as
observer or manifest server without having to cut a release or even
merge to `main`.
  • Loading branch information
masih authored Dec 13, 2024
1 parent fdd8d53 commit 65032d6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,19 @@ on:
types:
- completed
pull_request:
workflow_dispatch:
inputs:
sha:
description: 'Commit SHA to publish'
required: true

jobs:
prepare-checkout:
if: github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success'
name: Prepare ref
runs-on: ubuntu-latest
outputs:
ref: ${{ github.event_name != 'workflow_run' && github.ref || steps.releaser.outputs.version }}
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.sha || github.event_name != 'workflow_run' && github.ref || steps.releaser.outputs.version }}
steps:
- name: Get version tag from releaser
id: releaser
Expand Down

0 comments on commit 65032d6

Please sign in to comment.