Test New WF

This commit is contained in:
2025-07-03 17:46:11 +05:30
parent fcd1a38f7b
commit 661640e661
2 changed files with 36 additions and 4 deletions

View File

@@ -0,0 +1,32 @@
name: Docker Build and Publish
on:
workflow_dispatch:
push:
jobs:
docker-build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: install buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
version: latest
- name: build the image
run: |
docker buildx build \
--tag ${{ vars.DOCKERHUB_REPO }}:2.10.0 \
--tag ${{ vars.DOCKERHUB_REPO }}:latest \
--platform linux/amd64,linux/arm64 .