From 88a45cfb2467bfb5b06f025d21dc94b2f2495c34 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Thu, 28 Apr 2022 12:03:29 +0200 Subject: [PATCH] ci: enhance e2e workflow Signed-off-by: CrazyMax --- .github/workflows/e2e.yml | 43 ++++++++++++++++++++++++++++++++++----- 1 file changed, 38 insertions(+), 5 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index c1c8b83b..8ac2755d 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -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