Skip to content

Only upload docker images from schedule or merged PR#15

Draft
bwarden wants to merge 3 commits intoqualcomm-linux:mainfrom
bwarden:only-upload-images-on-schedule-or-successful-merge
Draft

Only upload docker images from schedule or merged PR#15
bwarden wants to merge 3 commits intoqualcomm-linux:mainfrom
bwarden:only-upload-images-on-schedule-or-successful-merge

Conversation

@bwarden
Copy link
Copy Markdown

@bwarden bwarden commented Mar 27, 2026

Do not upload docker images created by PRs until they've been merged.

bwarden added 2 commits March 27, 2026 14:00
Do not upload docker images created by PRs *until* they've been merged.

Signed-off-by: Brett T. Warden <bwarden@qti.qualcomm.com>
Signed-off-by: Brett T. Warden <bwarden@qti.qualcomm.com>
with:
arch: arm64

- name: Build and Upload Images
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Change name to "Upload Images" ?

Signed-off-by: Brett T. Warden <bwarden@qti.qualcomm.com>
- name: Upload Images
uses: ./.github/actions/upload_containers
# Only upload if the PR is being merged
if: ${{ github.event_name == 'schedule' || (github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true) }}
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I'm not completely certain this logic is correct. At least for now, this PR doesn't trigger the upload, but I'd appreciate a careful review by someone more familiar with workflows and the difference between pull_request and pull_request_target.

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.

3 participants