Skip to content

Build amd64 and arm64 images concurrently #2

Build amd64 and arm64 images concurrently

Build amd64 and arm64 images concurrently #2

Workflow file for this run

name: Build main
on:
push:
branches:
- "main"
workflow_dispatch:
jobs:
docker:
strategy:
matrix:
platform:
- linux/amd64
- linux/arm64
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ matrix.platform }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: ${{ matrix.platform }}
provenance: false
push: true
tags: ghcr.io/iublibtech/rdc/rdc:latest