Skip to content

build: 支持arm镜像 #122

build: 支持arm镜像

build: 支持arm镜像 #122

Workflow file for this run

name: Build Docker Image
on:
push:
branches:
- dev
jobs:
x86-64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Login to github registry
uses: actions-hub/docker/login@master
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- name: Build :latest
if: success()
run: docker build -t weaigc/bingo:latest .
- name: Push to docker hub :latest
if: success()
uses: actions-hub/docker@master
with:
args: push weaigc/bingo:latest
arm:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build :latest
run: docker build -t weaigc/bingo:arm -f ./docker/arm .
-
name: Build and push
uses: docker/build-push-action@v4
with:
context: .
dockerfile: ./docker/arm
platforms: linux/arm64
push: true
tags: weaigc/bingo:arm