Skip to content

GHA for push to docker.io #17

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

Merged
merged 3 commits into from
Jun 3, 2025
Merged

Conversation

nullfunc
Copy link

@nullfunc nullfunc commented May 26, 2025

Update GHA to allow manual triggering of action to docker.io

@nullfunc nullfunc temporarily deployed to AWS_ROLE_TO_ASSUME May 26, 2025 16:30 — with GitHub Actions Inactive
@nullfunc nullfunc temporarily deployed to AWS_ROLE_TO_ASSUME May 30, 2025 15:55 — with GitHub Actions Inactive
@nullfunc nullfunc changed the title update so images are stored in aws and gcp registries GHA for push to docker.io May 30, 2025
- "v*" # push events to tagged commits
branches:
- "**"
workflow_dispatch:
Copy link
Member

Choose a reason for hiding this comment

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

Why did you make this change? I think automatically pushing to docker.io on each merge todefang is a good idea.

Why shouldn't we do something like this?

Suggested change
workflow_dispatch:
push:
tags:
- "v*" # push events to tagged commits
branches:
- "defang"

Copy link
Author

Choose a reason for hiding this comment

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

I am reluctant to have this auto push until we have a test in place.

Copy link
Member

Choose a reason for hiding this comment

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

A test of what?

Copy link
Author

Choose a reason for hiding this comment

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

end to end test. The fact that we have to handle differences between anthropic and gemini makes me think regressions will go undetected if we automate pushing.

if: startsWith(github.ref, 'refs/tags/v') # only run this step on tagged commits
make-images:
name: Make Docker Images and Push To Registry
if: github.ref == 'refs/heads/defang'
Copy link
Member

Choose a reason for hiding this comment

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

This is implied by the suggestion above, so it could be removed here

Suggested change
if: github.ref == 'refs/heads/defang'

@nullfunc nullfunc temporarily deployed to AWS_ROLE_TO_ASSUME June 2, 2025 22:45 — with GitHub Actions Inactive
@nullfunc nullfunc requested a review from jordanstephens June 2, 2025 22:46
Copy link
Member

@jordanstephens jordanstephens left a comment

Choose a reason for hiding this comment

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

I look forward to automating this completely, but this is a nice step forward 👍

@nullfunc nullfunc merged commit 4c70c72 into defang Jun 3, 2025
1 check passed
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.

2 participants