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

Build multi arch images on GitHub Actions and push to DockerHub #347

Merged
merged 1 commit into from
Apr 13, 2021
Merged

Build multi arch images on GitHub Actions and push to DockerHub #347

merged 1 commit into from
Apr 13, 2021

Conversation

buchdag
Copy link
Member

@buchdag buchdag commented Apr 13, 2021

As proposed in #346 (comment), this PR adds a GitHub Actions workflow that build multi arch images of jwilder/docker-gen and push them to DockerHub.

For this PR to work, in addition to enabling GitHub Actions, two secrets need to be added to the repo:
DOCKERHUB_USERNAME: the name of DockerHub account that has push rights to jwilder/docker-gen
DOCKERHUB_TOKEN: a DockerHub access token for the DOCKERHUB_USERNAME account

The workflow is triggered:

  • on push to the master branch
  • on creation of a new x.y.z semver tag
  • on schedule every Monday at 00:00 UTC

It can also be triggered manually thanks to workflow_dispatch

The images created from new Git tags are tagged as :{{major}}.{{minor}} and :{{major}}.{{minor}}.{{patch}}, ie a new 0.7.6 tag would push jwilder/docker-gen:0.7.6 and jwilder/docker-gen:0.7 to Dockerhub.

Every newly built image is also pushed as latest.

@jwilder jwilder merged commit 2024a2f into nginx-proxy:master Apr 13, 2021
@jwilder
Copy link
Collaborator

jwilder commented Apr 13, 2021

I setup the secrets.

@buchdag buchdag deleted the github-actions-build branch April 13, 2021 18:50
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