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@mainname: 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