From 1bde4621b932080c9a7a2d4b2809366f16eaf8f8 Mon Sep 17 00:00:00 2001 From: Morlay Date: Tue, 16 Jun 2020 11:24:11 +0800 Subject: [PATCH] added workflow for buildx --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..2700ab73 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: build + +on: + push: + paths: + - ".github/workflows/build.yml" + - 'Changes' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: crazy-max/ghaction-docker-buildx@v3 + with: + buildx-version: v0.4.1 + - run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin + - run: git submodule update --init + - run: | + docker buildx build \ + --push \ + --platform=linux/arm64,linux/amd64 \ + -f=docker/alpine/Dockerfile \ + -t=${{ github.repository }} \ + .