Skip to content
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

Publish Docker images through CI #2236

Merged
merged 1 commit into from Jul 27, 2023

Conversation

peace-maker
Copy link
Member

Rebuild the Docker images on push to the respective branch.
Triggering the workflow manually causes the base image to be rebuild as well as all other images too. So we'll have to trigger this from time to time or when the base image changed.

This requires docker hub credentials to be available in the repository secrets DOCKERHUB_USERNAME and DOCKERHUB_PASSWORD. The password can be an access token too.

Fixes #2187

Rebuild the images on push to the respective branch.
@peace-maker peace-maker linked an issue Jul 25, 2023 that may be closed by this pull request
@Arusekk
Copy link
Member

Arusekk commented Jul 26, 2023

Great job! We could probably also make it rebuild the base image on pushes to paths in extra/docker/ if you think it could be useful.

@peace-maker
Copy link
Member Author

I don't know if you can trigger single steps depending on paths. We could duplicate the action partly with push.paths?

@Arusekk
Copy link
Member

Arusekk commented Jul 26, 2023

Maybe we could. Does GHA-flavoured YAML support cross-file includes? That would be great for de-duplication. But if not, we can keep it the way you suggest it now.

@peace-maker
Copy link
Member Author

@peace-maker peace-maker merged commit c334d46 into Gallopsled:dev Jul 27, 2023
9 of 10 checks passed
@peace-maker peace-maker deleted the docker_publish branch July 27, 2023 12:41
@peace-maker
Copy link
Member Author

I don't have time to look into reuseable workflows now, so that improvement can be done later.

@peace-maker
Copy link
Member Author

@Arusekk Can you allow those actions to be used on this repo?
https://github.com/Gallopsled/pwntools/actions/runs/5680637015

@peace-maker peace-maker linked an issue Jul 27, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants