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

Push Docker images for tags only #3008

Merged
merged 2 commits into from
Apr 26, 2023
Merged

Conversation

tillprochaska
Copy link
Contributor

We have implemented a process that uses release candidates for pre-release testing and deployments, so there’s no need anymore to push Docker images for every commit. This is wasteful in terms of bandwidth and storage resources and clutters the image repository.

@catileptic @Rosencrantz @stchris This is something we have discussed a few times before, tbh I’m not sure anymore what exactly our conclusion was. Let me know if you have concerns or in case we do actually still depend on images built from commits that are not tagged.

@tillprochaska tillprochaska marked this pull request as ready for review April 24, 2023 20:57
Copy link
Contributor

@stchris stchris left a comment

Choose a reason for hiding this comment

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

Totally on board with this, thanks for making this change! The build seems to fail but it must be a glitch, will trigger a re-run.

Copy link
Contributor

@stchris stchris left a comment

Choose a reason for hiding this comment

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

Oh actually the build is failing because the first push job had the docker login statement we need so you might need to move that down to the next one.

@tillprochaska
Copy link
Contributor Author

Ha, thanks for catching this! I opened the PR with too much confidence and then didn't bother to check the CI status 😄

@Rosencrantz
Copy link
Contributor

I agree with Chris. We don't need to publish absolutely everything. Better only to publish the things we tag.

We have implemented a process that uses release candidates for pre-release testing and deployments, so there’s no need anymore to push Docker images for every commit. This is wasteful in terms of bandwidth and storage resources and clutters the image repository.
@tillprochaska tillprochaska force-pushed the push-images-for-tags-only branch from 87b7dc0 to 063b1b9 Compare April 25, 2023 11:50
@tillprochaska
Copy link
Contributor Author

Alright, thanks again for catching my mistakes. I’ve fixed the workflow and tested it to make sure it will publish images for tagged commits successfully ;)

https://github.com/alephdata/aleph/pkgs/container/aleph/88237955?tag=test-updated-workflows
https://github.com/alephdata/aleph/pkgs/container/aleph-ui-production/88238718?tag=test-updated-workflows

@Rosencrantz Rosencrantz merged commit af945fa into develop Apr 26, 2023
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