1
0
Fork 0
mirror of https://github.com/docker/setup-buildx-action.git synced 2024-11-25 13:01:57 +00:00

Merge pull request #68 from crazy-max/config-test

Add test job for config input
This commit is contained in:
CrazyMax 2021-04-23 22:37:54 +02:00 committed by GitHub
commit 076026291d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -216,6 +216,38 @@ jobs:
with:
endpoint: mycontext
config:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Create buildkitd conf
run: |
cat > /tmp/buildkitd.toml <<EOL
debug = true
[registry."docker.io"]
mirrors = ["mirror.gcr.io"]
EOL
-
name: Create Dockerfile
run: |
cat > ./Dockerfile <<EOL
FROM alpine
EOL
-
name: Set up Docker Buildx
uses: ./
with:
buildkitd-flags: --debug
config: /tmp/buildkitd.toml
-
name: Build
uses: docker/build-push-action@v2
with:
context: .
with-qemu:
runs-on: ubuntu-latest
strategy: