Skip to content

mimiro-io/.github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Reusable GitHub Actions Workflows

Table of Contents

Docker Hub

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 }}

Custom name for the Docker Hub image repository

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"

About

Common & Reusable GitHub Actions Workflows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages