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

Update Docker Build and Push action for ARM #141

Merged
merged 10 commits into from
May 21, 2024
Merged

Update Docker Build and Push action for ARM #141

merged 10 commits into from
May 21, 2024

Conversation

abhishek-levo
Copy link
Contributor

@abhishek-levo abhishek-levo commented Feb 20, 2024

Question:
Do we need to save the different caches from every build and use just the last ones?
Screenshot 2024-02-20 at 13 34 46

I used the latest tag for the cache registries, so that we're storing it in the same image, and not hogging up storage space for cache that we might never use again.

Update: Using type=gha for the docker cache now. Abolishing buildling crapi-image-cache on dockerhub

Comment on lines 34 to 35
- name: Build image
uses: docker/build-push-action@v5
Copy link
Contributor

Choose a reason for hiding this comment

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

This should only be built for PRs. Please add a condition to this step.

loadBalancerIP: "35.226.144.72"
# loadBalancerIP: "35.226.144.72"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this an intentional change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, since we're hosted in Azure, we only need to pass an IP if we're assigning it a static, pre-allocated IP.
It's only being done manually for now.
I'll add the different IPs for crapi, crapi-dev and prod-demo to a cron workflow later.

image: mailhog/mailhog
image: jcalonso/mailhog
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use official images? If not, would it be possible to build this image ourselves?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It isn't.
But it's from a fork and has a million+ pulls on dockerhub.
Picked it up from here: mailhog/MailHog#359
We've been using it for the past couple of months now.

@abhishek-levo abhishek-levo merged commit 91ee68a into main May 21, 2024
7 checks 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