-
Notifications
You must be signed in to change notification settings - Fork 14
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
add docs about using Dependabot as an alternative #71
Comments
Hi @dersimn This action checks if the base image has a new version without a new tag. For example, if my image This action can detect that kind of change. Then you can rebuild Let me know if it makes sense. Maybe we need to add a better explanation of what this action does to the README 😅 |
idk when they adopted this feature to Dependabot, but I'm quite sure it wasn't there when I started using your project, but now you could just specify the full SHA in FROM alpine:3.19.4@sha256:ae65dbf8749a7d4527648ccee1fa3deb6bfcae34cbc30fc67aa45c44dcaa90ee ..and enable Dependabot (file: version: 2
updates:
- package-ecosystem: docker
directory: /
schedule:
interval: daily Then you will get Pull Requests like this one. Auto-MergeDoing some magic with GitHub Workflow you can also add auto-merge for PR created by Dependabot: name: Dependabot Auto-Merge
run-name: ${{ github.ref_name }} (${{github.ref_type}}, triggered by ${{ github.event_name }})
on:
pull_request:
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
# Using GITHUB_TOKEN __won't__ trigger following Workflows
# see: https://github.com/orgs/community/discussions/55906
#GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} I tried the whole setup here. This approach will clutter the git history though, but could be nicer when updating images with semantic versioning, bc then you could just increase the patch version whenever the parent image was updated. |
The GitHub way of updating Base Images would be to use Dependabot, how do you feel about adding an example to your README?
I'd prepare a PR, but if you don't like the idea to advertise other workflows, then i don't need to do the effort
The text was updated successfully, but these errors were encountered: