Merge pull request #15 from phamleduy04/main

feat: cicd for build and push to docker registry
This commit is contained in:
Alam
2025-10-14 22:19:56 +05:30
committed by GitHub

30
.github/workflows/build-and-publish.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: build docker image and push to dockerhub
on:
push:
branches:
- "main"
jobs:
docker-build-and-push:
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: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: bentopdf/bentopdf:latest
platforms: linux/amd64,linux/arm64