Skip to content

Update run workflow on main, plus Dependabot#6

Merged
johlju merged 3 commits intomainfrom
fix/workflow-on-main
Jul 18, 2025
Merged

Update run workflow on main, plus Dependabot#6
johlju merged 3 commits intomainfrom
fix/workflow-on-main

Conversation

@johlju
Copy link
Copy Markdown
Member

@johlju johlju commented Jul 18, 2025

This change is Reviewable

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jul 18, 2025

Warning

Rate limit exceeded

@johlju has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 21 minutes and 21 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 22e8db4 and dfd97fc.

📒 Files selected for processing (1)
  • .github/dependabot.yml (1 hunks)

Walkthrough

A Dependabot configuration file was added to automate updates for GitHub Actions dependencies. The Docker image publishing workflow was updated to distinguish between tag and branch builds, with separate steps and tagging strategies for each, and explicit triggers for pushes to the main branch and tags.

Changes

File(s) Change Summary
.github/dependabot.yml Added Dependabot configuration for automatic GitHub Actions dependency updates, scheduled daily.
.github/workflows/docker-publish.yml Modified workflow to separate build-and-push steps for tag and main branch events, with explicit triggers and tagging strategies.

Sequence Diagram(s)

sequenceDiagram
    participant GitHub
    participant Workflow
    participant DockerHub
    participant GHCR

    GitHub->>Workflow: Push to main or tag
    alt Tag push
        Workflow->>DockerHub: Build & push image (tag: ${{ tag }}, latest)
        Workflow->>GHCR: Build & push image (tag: ${{ tag }}, latest)
    else Main branch push
        Workflow->>DockerHub: Build & push image (tag: main)
        Workflow->>GHCR: Build & push image (tag: main)
    end
Loading

Possibly related PRs

  • Fix workflow #2: Modifies the same .github/workflows/docker-publish.yml file, focusing on build-and-push steps and cache settings, indicating related changes to the Docker publishing workflow configuration.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@johlju
Copy link
Copy Markdown
Member Author

johlju commented Jul 18, 2025

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Jul 18, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🔭 Outside diff range comments (1)
.github/workflows/docker-publish.yml (1)

62-77: Add cache-from / cache-to once registry creds are available

The commented cache directives dramatically speed up multi-arch builds.
Consider enabling them now that the workflow logs in to both registries.

-          # cache-from: "type=registry,ref=ghcr.io/viscalyx/devshell-dsc:buildcache"
-          # cache-to: "type=registry,ref=ghcr.io/viscalyx/devshell-dsc:buildcache,mode=max"
+          cache-from: "type=registry,ref=ghcr.io/viscalyx/devshell-dsc:buildcache"
+          cache-to:   "type=registry,ref=ghcr.io/viscalyx/devshell-dsc:buildcache,mode=max"
📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 60211e9 and 22e8db4.

📒 Files selected for processing (2)
  • .github/dependabot.yml (1 hunks)
  • .github/workflows/docker-publish.yml (3 hunks)
🔇 Additional comments (3)
.github/workflows/docker-publish.yml (3)

5-9: push.tags glob misses pre-release tags

v*.*.* will not match pre-release tags like v1.2.3-rc1.
If you ship release candidates, broaden the glob, e.g.:

-      - 'v*.*.*'
+      - 'v*'

44-61: Duplicate latest tag on every re-tag may overwrite stable image

Every new tag push (e.g., v1.2.3, v1.2.4) rewrites latest.
If you want latest to track only the default branch, move the latest tag to the branch build instead of the tag build, or drop it here.

No change suggested—verify intent.


11-14: Grant packages: read to tighten least-privilege

docker/login-action pushes via the Docker Hub / GHCR APIs, not via the GitHub Packages GraphQL API.
packages: write is only needed for ghcr.io pushes. If you ever stop pushing to GHCR, drop it; otherwise fine.

Comment thread .github/dependabot.yml Outdated
Comment thread .github/dependabot.yml
@johlju johlju merged commit 1cce40e into main Jul 18, 2025
2 checks passed
@johlju johlju deleted the fix/workflow-on-main branch July 18, 2025 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant