Test build

This commit is contained in:
2025-07-04 15:00:22 +05:30
parent 15b0166ad1
commit 8df0401e61
2 changed files with 18 additions and 9 deletions

View File

@@ -2,6 +2,10 @@ name: Docker Build
on: on:
workflow_dispatch: workflow_dispatch:
push:
branches: [ "main" ]
paths-ignore:
- '**/README.md'
jobs: jobs:
build: build:
@@ -9,6 +13,7 @@ jobs:
matrix: matrix:
config: config:
- {arch: 'arm64'} - {arch: 'arm64'}
- {arch: 'amd64'}
runs-on: ${{ matrix.config.arch == 'arm64' && 'ubuntu-arm64' || 'ubuntu-amd64' }} runs-on: ${{ matrix.config.arch == 'arm64' && 'ubuntu-arm64' || 'ubuntu-amd64' }}
steps: steps:
- name: Checkout - name: Checkout
@@ -26,7 +31,7 @@ jobs:
- name: Build and Push Docker images for all Container Registries - name: Build and Push Docker images for all Container Registries
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
tags: ${{ vars.DOCKERHUB_REPO }}:latest-${{matrix.config.arch}} tags: ${{ vars.DOCKERHUB_REPO }}:${{ vars.VERSION }}-${{matrix.config.arch}}, ${{ vars.DOCKERHUB_REPO }}:latest-${{matrix.config.arch}}
file: Dockerfile file: Dockerfile
push: true push: true
@@ -39,9 +44,17 @@ jobs:
with: with:
username: ${{ vars.DOCKERHUB_USERNAME }} username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Create and push manifest images
uses: Noelware/docker-manifest-action@master # or use a pinned version in the Releases tab - name: Create and push manifest images for pinned
uses: Noelware/docker-manifest-action@v1
with: with:
inputs: ${{ vars.DOCKERHUB_REPO }}:latest inputs: ${{ vars.DOCKERHUB_REPO }}:${{ vars.VERSION }}-arm64,${{ vars.DOCKERHUB_REPO }}:${{ vars.VERSION }}-amd64
tags: ${{ vars.DOCKERHUB_REPO }}:latest-arm64 tags: ${{ vars.DOCKERHUB_REPO }}:${{ vars.VERSION }}
push: true
- name: Create and push manifest images for latest
uses: Noelware/docker-manifest-action@v1
with:
inputs: ${{ vars.DOCKERHUB_REPO }}:latest-arm64,${{ vars.DOCKERHUB_REPO }}:latest-amd64
tags: ${{ vars.DOCKERHUB_REPO }}:latest
push: true push: true

View File

@@ -2,10 +2,6 @@ name: Docker Merge
on: on:
workflow_dispatch: workflow_dispatch:
push:
branches: [ "main" ]
paths-ignore:
- '**/README.md'
jobs: jobs:
merge-docker-manifest: merge-docker-manifest: