Merge test

This commit is contained in:
2025-07-04 14:41:53 +05:30
parent 388a320b06
commit c4ccbbf853
2 changed files with 11 additions and 14 deletions

View File

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

View File

@@ -2,23 +2,24 @@ name: Docker Merge
on: on:
workflow_dispatch: workflow_dispatch:
push:
branches: [ "main" ]
paths-ignore:
- '**/README.md'
jobs: jobs:
merge-docker-manifest: merge-docker-manifest:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build
steps: steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
username: ${{ vars.DOCKERHUB_USERNAME }} username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Create and push manifest images
- name: Create manifest images uses: Noelware/docker-manifest-action@master # or use a pinned version in the Releases tab
run: docker manifest create ${{ vars.DOCKERHUB_REPO }}:latest --amend ${{ vars.DOCKERHUB_REPO }}:latest-amd64 --amend ${{ vars.DOCKERHUB_REPO }}:latest-arm64 with:
inputs: ${{ vars.DOCKERHUB_REPO }}:latest
- name: Push manifest images tags: ${{ vars.DOCKERHUB_REPO }}:latest-arm64,${{ vars.DOCKERHUB_REPO }}:latest-amd64
run: docker manifest push --purge ${{ vars.DOCKERHUB_REPO }}:latest push: true