nutgaard / dockerhub-semantic-release-gh-action

GitHub Action to utilize semantic-release and publish images to docker hub automatically

Home Page:https://github.com/marketplace/actions/dockerhub-semantic-release

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dockerhub-semantic-release-gh-action

LICENSE


Utilize semantic-release and publish images to docker hub automatically

Required for usage

  • docker hub account
  • Dockerfile is present in root folder
  • Token for pushing and updating the repo on docker hub

Usage

name: Continuous build and release docker image
on:
  push:
    branches:
      - master
      - main
permissions:
  contents: write
jobs:
  main:
    steps:
      - runs-on: ubuntu-latest
        uses: timo-reymann/docker-semantic-release-gh-action@v1
        with:
          image: user/imagename
          dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
          dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
          github_token: ${{ secrets.GITHUB_TOKEN }}

About

GitHub Action to utilize semantic-release and publish images to docker hub automatically

https://github.com/marketplace/actions/dockerhub-semantic-release

License:MIT License