From b4558d20ea6641f3c9d0481d34219d873e885059 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Thu, 8 Oct 2020 00:57:33 +0200 Subject: [PATCH] Add CI workflow --- .github/ISSUE_TEMPLATE/bug_report.md | 4 --- .github/workflows/ci.yml | 52 ++++++++++++++++++++++++++++ README.md | 2 +- 3 files changed, 53 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 192a23a..1c2136d 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -3,10 +3,6 @@ name: Bug report about: Create a report to help us improve --- -### Troubleshooting - -Before sumbitting a bug report please read the [Troubleshooting doc](https://github.com/docker/build-push-action/blob/master/TROUBLESHOOTING.md). - ### Behaviour #### Steps to reproduce this issue diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6bae8a7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,52 @@ +name: ci + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + bake: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + target: + - default + - release + services: + registry: + image: registry:2 + ports: + - 5000:5000 + steps: + - + name: Checkout + uses: actions/checkout@v2.3.3 + - + name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - + name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v1 + with: + driver-opts: network=host + - + name: Build and push + id: docker_build + uses: ./ + with: + builder: ${{ steps.buildx.outputs.name }} + bake-files: | + ./test/config.hcl + bake-targets: | + ${{ matrix.target }} + push: false # set to true when https://github.com/docker/buildx/issues/179 is fixed + - + name: Dump context + if: always() + uses: crazy-max/ghaction-dump-context@v1 diff --git a/README.md b/README.md index e1bf664..339bc80 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push - uses: docker/build-push-action@v2 + uses: crazy-max/ghaction-docker-buildx-bake@master with: builder: ${{ steps.buildx.outputs.name }} push: true