Table of Contents
This workflow uses your Dockerfile to build and push a Docker image to Docker Hub.
To use this workflow, create a yaml file in your repo named .github/workflows/ci.yaml
and paste the below content.
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
release:
types:
- published
jobs:
DockerHub:
uses: mimiro-io/.github/.github/workflows/dockerhub.yaml@main
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
By default, the GitHub repo name is used as the Docker Hub repository name.
If you wish to use a custom name for the repository then you can override this by using the name
parameter.
Example usage:
jobs:
DockerHub:
uses: mimiro-io/.github/.github/workflows/dockerhub.yaml@main
with:
name: "some-other-name"