Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Multi arch docker images - #61

Open
willianpaixao wants to merge 2 commits into
smartcontractkit:masterfrom
willianpaixao:master
Open

willianpaixao wants to merge 2 commits into
smartcontractkit:masterfrom
willianpaixao:master

Conversation

@willianpaixao

Copy link
Copy Markdown

Comment thread .github/workflows/build-and-publish.yml Outdated

on:
push:
branches:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We want to still build this image during PRs, but only push when its been merged into master. That way we know for sure it'll successfully push once merged

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@HenryNguyen5 due to limitations Github Actions syntax, I decided to split into two workflows, one that only builds PRs and other that builds and publishes branches and tags.

Comment thread .github/workflows/build-and-publish.yml Outdated
Comment on lines +43 to +44
smartcontract/builder:1.1.0
${{ secrets.AWS_ECR_ACCOUNT_URL }}/builder:1.1.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should encode the tag version as a variable

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done.

smartcontract/builder:1.1.0
${{ secrets.AWS_ECR_ACCOUNT_URL }}/builder:1.1.0
platforms: linux/386,linux/amd64,linux/arm64
push: true

@HenryNguyen5 HenryNguyen5 Dec 3, 2020 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would make this a conditional where it's only true when the branch is master, and false when its not. That way we can change the workflow triggers to satisfy #61 (comment)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hum, since this repo only publishes tags (not every commit to master) I decided to make the pipeline only publish upon branch and tags.

@samsondav

Copy link
Copy Markdown
Contributor

@HenryNguyen5 ping

@HenryNguyen5

Copy link
Copy Markdown
Contributor

Thanks for getting back to us @willianpaixao! We'll go over this when we have the capacity to

@willianpaixao

Copy link
Copy Markdown
Author

Hi @HenryNguyen5 any updates?

@thiagoalmeidasa

Copy link
Copy Markdown

@HenryNguyen5 ping

@HenryNguyen5

Copy link
Copy Markdown
Contributor

We're still on CircleCI for publishing images, will come around to this when we use GHA for publishing!

@PiotrTrzpil

@PiotrTrzpil

Copy link
Copy Markdown

@HenryNguyen5 ok - thanks for letting know!

@samsondav

Copy link
Copy Markdown
Contributor

@HenryNguyen5 any updates here?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants