Add CI workflow

This commit is contained in:
CrazyMax
2020-10-08 00:57:33 +02:00
parent d5925e3e9e
commit b4558d20ea
3 changed files with 53 additions and 5 deletions

View File

@@ -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

52
.github/workflows/ci.yml vendored Normal file
View File

@@ -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

View File

@@ -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