mirror of
https://github.com/docker/build-push-action.git
synced 2025-04-22 22:56:37 +02:00
Add setup-buildx action (#71)
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
836357fa9e
commit
6df1822dc3
20 changed files with 11823 additions and 0 deletions
40
.github/workflows/setup-buildx-ci.yml
vendored
Normal file
40
.github/workflows/setup-buildx-ci.yml
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
name: setup-buildx-ci
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- .github/workflows/setup-buildx-ci.yml
|
||||
- setup-buildx/**
|
||||
pull_request:
|
||||
paths:
|
||||
- .github/workflows/setup-buildx-ci.yml
|
||||
- setup-buildx/**
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
buildx-version:
|
||||
- latest
|
||||
- v0.2.2
|
||||
steps:
|
||||
-
|
||||
name: Runner info
|
||||
run: |
|
||||
sudo apt-get install -y hwinfo
|
||||
sudo hwinfo --short
|
||||
sudo mount
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2.3.1
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: ./setup-buildx/
|
||||
with:
|
||||
buildx-version: ${{ matrix.buildx-version }}
|
||||
-
|
||||
name: Available platforms
|
||||
run: echo ${{ steps.buildx.outputs.platforms }}
|
32
.github/workflows/setup-buildx-precheckin.yml
vendored
Normal file
32
.github/workflows/setup-buildx-precheckin.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
name: setup-buildx-precheckin
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- .github/workflows/setup-buildx-precheckin.yml
|
||||
- setup-buildx/**
|
||||
pull_request:
|
||||
paths:
|
||||
- .github/workflows/setup-buildx-precheckin.yml
|
||||
- setup-buildx/**
|
||||
|
||||
jobs:
|
||||
pre-checkin:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2.3.1
|
||||
-
|
||||
name: Install
|
||||
run: yarn --cwd ./setup-buildx/ install
|
||||
-
|
||||
name: Pre-checkin
|
||||
run: yarn --cwd ./setup-buildx/ run pre-checkin
|
||||
-
|
||||
name: Check for uncommitted changes
|
||||
run: |
|
||||
if [[ `git status --porcelain` ]]; then
|
||||
git status --porcelain
|
||||
echo "::warning::Found changes. Please run 'yarn --cwd ./setup-buildx/ run pre-checkin' and push"
|
||||
fi
|
32
.github/workflows/setup-buildx-test.yml
vendored
Normal file
32
.github/workflows/setup-buildx-test.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
|||
name: setup-buildx-test
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- .github/workflows/setup-buildx-test.yml
|
||||
- setup-buildx/**
|
||||
pull_request:
|
||||
paths:
|
||||
- .github/workflows/setup-buildx-test.yml
|
||||
- setup-buildx/**
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2.3.1
|
||||
-
|
||||
name: Install
|
||||
run: yarn install
|
||||
-
|
||||
name: Test
|
||||
run: yarn run test
|
||||
# -
|
||||
# name: Upload coverage
|
||||
# uses: codecov/codecov-action@v1.0.7
|
||||
# if: success()
|
||||
# with:
|
||||
# token: ${{ secrets.CODECOV_TOKEN }}
|
||||
# file: ./coverage/clover.xml
|
Loading…
Add table
Add a link
Reference in a new issue