Skip to content

Latest commit

 

History

History
44 lines (35 loc) · 1.02 KB

File metadata and controls

44 lines (35 loc) · 1.02 KB

.github

Reusable Workflow Example

Build and push to ghcr.io registry

Create .github/workflows/build-and-push-image.yml file:

name: Build and push image

on:
  workflow_dispatch:

jobs:
  build-and-push-image:
    permissions:
      contents: read
      packages: write
    uses: chenwei791129/.github/.github/workflows/build-and-push-image.yml@main

include Docker Hub registry

name: Build and push image

on:
  workflow_dispatch:

jobs:
  build-and-push-image:
    permissions:
      contents: read
      packages: write
    uses: chenwei791129/.github/.github/workflows/build-and-push-image.yml@main
    with:
      dockerhub-username: your-dockerhub-username
    additional-tags: |
      type=raw,value=custom-tag
      type=raw,value=custom-tag2

References