Skip to content

build: 支持arm镜像 #116

build: 支持arm镜像

build: 支持arm镜像 #116

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:
- 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:arm -f ./docker/arm .
- name: Push to docker hub :arm
if: success()
uses: actions-hub/docker@master
with:
args: push weaigc/bingo:arm