Skip to content

build: 支持arm镜像 #119

build: 支持arm镜像

build: 支持arm镜像 #119

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()
with:
platforms: linux/arm64
run: docker build -t weaigc/bingo:arm -f ./docker/arm .

Check failure on line 44 in .github/workflows/docker.yml

View workflow run for this annotation

GitHub Actions / Build Docker Image

Invalid workflow file

The workflow is not valid. .github/workflows/docker.yml (Line: 44, Col: 9): Unexpected value 'run' .github/workflows/docker.yml (Line: 40, Col: 9): Required property is missing: uses
- name: Push to docker hub :arm
if: success()
uses: actions-hub/docker@master
with:
args: push weaigc/bingo:arm