This GitHub Action build and push Docker images with bedag/image-build.
name: Example
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: image-build build & push
uses: bedag/image-build-action@main
with:
push: true
docker_username: ${{ secrets.DOCKERHUB_USERNAME }}
docker_password: ${{ secrets.DOCKERHUB_TOKEN}}
In action.yaml you see find all supported Inputs(with statement).