Skip to content

Support stop generating #75

Support stop generating

Support stop generating #75

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
paths:
- '**'
- '!example/**'
- '!README.md'
- '!LICENSE'
tags: ['v*']
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}
flavor: |
latest=true
tags: |
type=sha
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
-
name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}