From f9c07d9664900287b46fafe7af489cf43cde7cd3 Mon Sep 17 00:00:00 2001 From: Tomas Virgl Date: Thu, 14 May 2020 18:18:56 +0200 Subject: [PATCH] Add build github action to push to quay --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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 0000000..7b3cdda --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: build + +on: + push: + branches: + - master + tags: + - v* + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: azure/docker-login@v1 + with: + login-server: quay.io + username: '${{ secrets.QUAYIO_USERNAME }}' + password: '${{ secrets.QUAYIO_PASSWORD }}' + - name: Set up Docker Buildx + id: buildx + uses: crazy-max/ghaction-docker-buildx@v1 + with: + buildx-version: latest + qemu-version: latest + - name: Available platforms + run: 'echo ${{ steps.buildx.outputs.platforms }}' + - name: Run Buildx + run: | + docker buildx build \ + --platform linux/amd64,linux/arm64 \ + --push -t quay.io/wish/katalog-sync:${GITHUB_REF##*/} .