-
Notifications
You must be signed in to change notification settings - Fork 0
Dataset author normalization #317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
6e9dac4
4ba2178
1dd6c12
5dae463
7fa5417
34ffe36
5abf551
2981058
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| name: gateway-promote-stable | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| commit_sha: | ||
| description: 'Short commit SHA to promote (e.g. a1b2c3d)' | ||
| required: true | ||
| type: string | ||
|
|
||
| permissions: | ||
| contents: read | ||
| packages: write | ||
|
|
||
| jobs: | ||
| gwy-promote: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v7 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Verify commit is on default branch | ||
| env: | ||
| SHA: ${{ inputs.commit_sha }} | ||
| run: | | ||
| SHA_INPUT="${SHA}" | ||
| # Resolve the short SHA to a full SHA | ||
| if ! FULL_SHA=$(git rev-parse --verify "${SHA_INPUT}^{commit}" 2>/dev/null); then | ||
| echo "ERROR: Could not resolve commit '${SHA_INPUT}' in this repository." | ||
| echo "Ensure you are using a valid short SHA from the default branch (main)." | ||
| exit 1 | ||
| fi | ||
| echo "Resolved SHA: ${FULL_SHA}" | ||
| # Verify the commit is an ancestor of the default branch (main) | ||
| if ! git merge-base --is-ancestor "${FULL_SHA}" origin/main; then | ||
| echo "ERROR: Commit ${SHA_INPUT} (${FULL_SHA}) is not an ancestor of the default branch (main)." | ||
| echo "Only commits from the default branch can be promoted to stable." | ||
| exit 1 | ||
| fi | ||
| echo "✓ Commit ${SHA_INPUT} is a valid ancestor of main. Proceeding with promotion." | ||
|
|
||
| - name: Log in to ghcr.io | ||
| uses: docker/login-action@v4 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Promote dev-<sha> to stable | ||
| env: | ||
| SHA: ${{ inputs.commit_sha }} | ||
| run: | | ||
| REGISTRY="ghcr.io/spectrumx/sds-gateway" | ||
| docker buildx imagetools create \ | ||
| --tag "${REGISTRY}:stable" \ | ||
| "${REGISTRY}:dev-${SHA}" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Promote tag SHA mismatchMedium Severity The promotion workflow uses the raw Reviewed by Cursor Bugbot for commit 5dae463. Configure here. |
||


Uh oh!
There was an error while loading. Please reload this page.