|
|
|
@ -12,8 +12,40 @@ on:
|
|
|
|
|
- 'v[0-9]*'
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
env:
|
|
|
|
|
BIN_OUT: ./bin
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
-
|
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
|
with:
|
|
|
|
|
version: latest
|
|
|
|
|
-
|
|
|
|
|
name: Build
|
|
|
|
|
uses: docker/bake-action@v1
|
|
|
|
|
with:
|
|
|
|
|
targets: binaries
|
|
|
|
|
-
|
|
|
|
|
name: Rename binary
|
|
|
|
|
run: |
|
|
|
|
|
mv ${{ env.BIN_OUT }}/buildx ${{ env.BIN_OUT }}/docker-buildx
|
|
|
|
|
-
|
|
|
|
|
name: Upload artifacts
|
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
|
with:
|
|
|
|
|
name: binary
|
|
|
|
|
path: ${{ env.BIN_OUT }}
|
|
|
|
|
if-no-files-found: error
|
|
|
|
|
retention-days: 7
|
|
|
|
|
|
|
|
|
|
driver:
|
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
needs:
|
|
|
|
|
- build
|
|
|
|
|
strategy:
|
|
|
|
|
fail-fast: false
|
|
|
|
|
matrix:
|
|
|
|
@ -52,14 +84,15 @@ jobs:
|
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
|
if: matrix.driver == 'docker' || matrix.driver == 'docker-container'
|
|
|
|
|
-
|
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
|
name: Install buildx
|
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
|
with:
|
|
|
|
|
version: latest
|
|
|
|
|
name: binary
|
|
|
|
|
path: /home/runner/.docker/cli-plugins
|
|
|
|
|
-
|
|
|
|
|
name: Install buildx
|
|
|
|
|
name: Fix perms and check
|
|
|
|
|
run: |
|
|
|
|
|
make install
|
|
|
|
|
chmod +x /home/runner/.docker/cli-plugins/docker-buildx
|
|
|
|
|
docker buildx version
|
|
|
|
|
-
|
|
|
|
|
name: Init env vars
|
|
|
|
|