name: Build Image using Dockerfile on: push: branches: - main jobs: build: name: Build image runs-on: ubuntu-latest steps: - name: Setup Buildah run: | apt -y update apt -y install buildah - uses: actions/checkout@v3 - name: Buildah Action uses: redhat-actions/buildah-build@v2 with: image: my-new-image tags: latest ${{ github.sha }} containerfiles: | ./Dockerfile build-args: | TARGETARCH=amd64 BUILD_DATE=$(date +%Y%m%d%H%M)