Skip to content

[skip.all] Multi-arch image #49

[skip.all] Multi-arch image

[skip.all] Multi-arch image #49

Workflow file for this run

name: Docker Latest
on:
push:
branches: [ dev ]
jobs:
linux:
if: ${{ !contains(github.event.head_commit.message, '[skip.all]') }}
runs-on: self-hosted
timeout-minutes: 60
strategy:
matrix:
arch: [ amd64 ]
steps:
- name: Clone
uses: actions/checkout@v4
- name: Login Docker
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login GitHub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: QEMU
if: ${{ matrix.arch == 'arm64' }}
uses: docker/setup-qemu-action@v3
- name: Buildx
uses: docker/setup-buildx-action@v3
- name: Build ${{ matrix.arch }}
uses: docker/build-push-action@v6
with:
context: .
file: ./Script/${{ matrix.arch }}/Rocky.Dockerfile
platforms: linux/${{ matrix.arch }}
push: true
tags: |
tlcfem/suanpan:latest
ghcr.io/tlcfem/suanpan:latest