-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
ci: add GitHub packages to arc release #1525
Changes from all commits
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 |
---|---|---|
|
@@ -5,6 +5,11 @@ on: | |
types: | ||
- published | ||
|
||
# https://docs.github.com/en/rest/overview/permissions-required-for-github-apps | ||
permissions: | ||
contents: write | ||
packages: write | ||
|
||
jobs: | ||
release-controller: | ||
name: Release | ||
|
@@ -58,6 +63,8 @@ jobs: | |
${{ env.DOCKERHUB_USERNAME }}/actions-runner-controller:latest | ||
${{ env.DOCKERHUB_USERNAME }}/actions-runner-controller:${{ env.VERSION }} | ||
${{ env.DOCKERHUB_USERNAME }}/actions-runner-controller:${{ env.VERSION }}-${{ steps.vars.outputs.sha_short }} | ||
ghcr.io/actions-runner-controller/actions-runner-controller:latest | ||
ghcr.io/actions-runner-controller/actions-runner-controller:${{ env.VERSION }} | ||
ghcr.io/actions-runner-controller/actions-runner-controller:${{ env.VERSION }}-${{ steps.vars.outputs.sha_short }} | ||
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. I guess we might also need the permission for package writing at least, as similar as we do for the canary builds (#1524): 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. we don't have any exlicit permissions set at the moment so the token will be write all. I'll do a little test to figure out which we need and add them to his PR as we do more than the canary workflow so may need other permissions 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. Added what I think we need based on the API routes in https://docs.github.com/en/rest/overview/permissions-required-for-github-apps |
||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps
read
might be enough as our canary pipeline seems to be working fine withread
? (I wonder if we needwrite
for cache writing but apparently not?