Multi runner test

This commit is contained in:
2025-07-04 13:23:22 +05:30
parent 56502c2638
commit 1ba951211c

View File

@@ -8,17 +8,29 @@ on:
- '**/README.md' - '**/README.md'
jobs: jobs:
docker-build-and-publish-arm64: build:
runs-on: ubuntu-arm64 strategy:
matrix:
config:
- {arch: 'arm64'}
- {arch: 'amd64'}
runs-on: ${{ matrix.config.arch == 'arm64' && 'ubuntu-arm64' || 'ubuntu-adm64' }}
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- 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: Docker Build - name: Build and Push Docker images for all Container Registries
run: docker build --tag ${{ vars.DOCKERHUB_REPO }}:2.10.0 --tag ${{ vars.DOCKERHUB_REPO }}:latest --push . uses: docker/build-push-action@v6
with:
tags: ${{ vars.DOCKERHUB_REPO }}:2.10.0-${{matrix.config.arch}} , ${{ vars.DOCKERHUB_REPO }}:latest-${{matrix.config.arch}}
file: Dockerfile
push: true