From 1e2bbff99e968766df9db1b6d100daf873db18c1 Mon Sep 17 00:00:00 2001 From: Simba Zhang Date: Fri, 2 Sep 2022 10:31:34 -0700 Subject: [PATCH 1/2] Create image.yml --- .github/workflows/image.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/image.yml diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml new file mode 100644 index 000000000..47ca90169 --- /dev/null +++ b/.github/workflows/image.yml @@ -0,0 +1,22 @@ +name: build our image + +on: + push: + branches: master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout code + uses: actions/checkout@v2 + - name: install buildx + id: buildx + uses: crazy-max/ghaction-docker-buildx@v1 + with: + version: latest + - name: build the image + run: | + docker buildx build \ + --tag your-username/multiarch-example:latest \ + --platform linux/amd64,linux/arm/v7,linux/arm64 . From 06ba2caf9ba22537b3609fb928d6e077f72d26f7 Mon Sep 17 00:00:00 2001 From: Simba Zhang Date: Fri, 2 Sep 2022 10:33:55 -0700 Subject: [PATCH 2/2] Update image.yml --- .github/workflows/image.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 47ca90169..a3c5162f0 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -16,7 +16,7 @@ jobs: with: version: latest - name: build the image - run: | - docker buildx build \ - --tag your-username/multiarch-example:latest \ - --platform linux/amd64,linux/arm/v7,linux/arm64 . + run: | + docker buildx build \ + --tag your-username/multiarch-example:latest \ + --platform linux/amd64,linux/arm/v7,linux/arm64 .