|
|
|
@ -14,7 +14,8 @@ on:
|
|
|
|
- 'v[0-9]*'
|
|
|
|
- 'v[0-9]*'
|
|
|
|
|
|
|
|
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
REPO_SLUG: "docker/buildx-bin"
|
|
|
|
BIN_REPO_SLUG: "docker/buildx-bin"
|
|
|
|
|
|
|
|
PKG_REPO_SLUG: "docker/buildx-pkg"
|
|
|
|
RELEASE_OUT: "./release-out"
|
|
|
|
RELEASE_OUT: "./release-out"
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
@ -71,7 +72,7 @@ jobs:
|
|
|
|
uses: docker/metadata-action@v3
|
|
|
|
uses: docker/metadata-action@v3
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
images: |
|
|
|
|
images: |
|
|
|
|
${{ env.REPO_SLUG }}
|
|
|
|
${{ env.BIN_REPO_SLUG }}
|
|
|
|
tags: |
|
|
|
|
tags: |
|
|
|
|
type=ref,event=branch
|
|
|
|
type=ref,event=branch
|
|
|
|
type=ref,event=pr
|
|
|
|
type=ref,event=pr
|
|
|
|
@ -112,6 +113,18 @@ jobs:
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
name: Docker meta
|
|
|
|
|
|
|
|
id: meta
|
|
|
|
|
|
|
|
uses: docker/metadata-action@v3
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
images: |
|
|
|
|
|
|
|
|
${{ env.PKG_REPO_SLUG }}
|
|
|
|
|
|
|
|
tags: |
|
|
|
|
|
|
|
|
type=ref,event=branch
|
|
|
|
|
|
|
|
type=ref,event=pr
|
|
|
|
|
|
|
|
type=semver,pattern={{version}}
|
|
|
|
|
|
|
|
bake-target: meta-helper
|
|
|
|
-
|
|
|
|
-
|
|
|
|
name: Set up QEMU
|
|
|
|
name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
@ -121,10 +134,22 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
driver-opts: image=${{ env.REPO_SLUG_ORIGIN }}
|
|
|
|
driver-opts: image=${{ env.REPO_SLUG_ORIGIN }}
|
|
|
|
-
|
|
|
|
-
|
|
|
|
name: Build packages
|
|
|
|
name: Login to DockerHub
|
|
|
|
run: |
|
|
|
|
if: github.event_name != 'pull_request'
|
|
|
|
make pkg-cross
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
tree ./bin
|
|
|
|
with:
|
|
|
|
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
|
name: Build and push image
|
|
|
|
|
|
|
|
uses: docker/bake-action@v1
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
files: |
|
|
|
|
|
|
|
|
./docker-bake.hcl
|
|
|
|
|
|
|
|
${{ steps.meta.outputs.bake-file }}
|
|
|
|
|
|
|
|
targets: pkg-cross
|
|
|
|
|
|
|
|
set: |
|
|
|
|
|
|
|
|
*.output=type=image,push=${{ github.event_name != 'pull_request' }}
|
|
|
|
|
|
|
|
|
|
|
|
buildkit-edge:
|
|
|
|
buildkit-edge:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|