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

chore: build arm64 docker images #110

Merged
merged 3 commits into from
Aug 1, 2024
Merged

chore: build arm64 docker images #110

merged 3 commits into from
Aug 1, 2024

Conversation

steveiliop56
Copy link
Contributor

See #108

password: ${{ secrets.GITHUB_TOKEN }}

- name: Push image to GitHub
if: github.ref == 'refs/heads/master'
Copy link
Contributor

Choose a reason for hiding this comment

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

When I first put together the container image build and push, I intended to build the image on every PR and every merge as part of CI, but only push the image on every merge to master--hence this condition. I don't see a similar condition in your code. Is it pushing to the github container registry on every run or only if we're merging to master?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh I forgot to include that part of the code. Let me fix it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah there is a small problem, you see the buildx action does everything in one go, so it builds and pushes. So I can't really tell it to push only on this condition.

       with:
        context: .
         platforms: linux/amd64, linux/arm64
         push: true
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we add a condition here?

push: github.ref == 'refs/heads/master'

or similar?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Huh that may actually work

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's try

@mawise
Copy link
Contributor

mawise commented Aug 1, 2024

Thank you @steveiliop56 !

@mawise mawise merged commit 180dc72 into havenweb:master Aug 1, 2024
2 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