-
Notifications
You must be signed in to change notification settings - Fork 1
Build using the Okteto Build GitHub Action #6
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
base: master
Are you sure you want to change the base?
Conversation
| file: Dockerfile | ||
| buildargs: "COMMIT_SHA=${{ github.sha }}" | ||
| platform: linux/amd64,linux/arm64 | ||
| tag: ${{ steps.tag.outputs.TAG }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can push to more than one registry if the Okteto CLI supports multi-tag builds
| url: ${{ secrets.OKTETO_PRODUCT_URL }} | ||
| token: ${{ secrets.OKTETO_PRODUCT_TOKEN }} | ||
|
|
||
| - name: Login to DockerHub |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could define these credentials in product.okteto.dev, but that would give us push permissions when running okteto build locally. I think it's more secured to define these credentials as GiHub secrets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, I think it is better to keep them as GitHub secrets
| url: ${{ secrets.OKTETO_PRODUCT_URL }} | ||
| token: ${{ secrets.OKTETO_PRODUCT_TOKEN }} | ||
|
|
||
| - name: Login to DockerHub |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, I think it is better to keep them as GitHub secrets
The main changes proposed in this PR are:
platformto build ARM and AMD imagesif: ${{ github.event_name == 'release' }}to this end