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

Multiarch Docker build via GitHub Actions #23

Closed
wants to merge 2 commits into from

Conversation

xescure
Copy link

@xescure xescure commented Mar 10, 2021

Todos before application:

  1. Disable autobuild via DockerHub
  2. Change Actions secrets:
  • DOCKERHUB_USERNAME to the Docker Hub username
  • DOCKERHUB_PASSWORD to the Docker Hub password
  • DOCKERHUB_TOKEN to a Docker Hub user token (does not work with 2FA enabled)
  • DOCKERHUB_REPOSITORY to the Docker Hub repository (alexta69/metube)
  1. Test compiled containers first under a different tag (line 34) before pushing to :latest

@xescure xescure mentioned this pull request Mar 10, 2021
@xescure xescure marked this pull request as ready for review March 10, 2021 11:46
uses: docker://lsiodev/readme-sync:latest
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
Copy link
Owner

Choose a reason for hiding this comment

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

I suppose this can also use the token, and the password isn't really needed, right? let's try changing it to TOKEN (I can't edit your PR, only propose changes..)

Copy link
Author

Choose a reason for hiding this comment

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

That was my first instinct, but it didn't work for me. I guess I might have just made a typo somewhere...

context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: ${{ secrets.DOCKERHUB_REPOSITORY }}:latest
Copy link
Owner

Choose a reason for hiding this comment

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

let's change the label to "github" for now, so we can test it out

@alexta69
Copy link
Owner

@xescure I actually just copied the file and pushed it myself, so you don't need to bother making the changes I requested in the comments, we can just close the PR once everything works

@xescure xescure closed this Mar 10, 2021
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.

None yet

2 participants