2020-08-18 17:40:31 +02:00
|
|
|
name: ci
|
|
|
|
|
2023-09-05 11:09:23 +02:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2020-08-18 17:40:31 +02:00
|
|
|
on:
|
2021-04-02 01:19:14 +02:00
|
|
|
schedule:
|
2023-03-12 13:58:14 +01:00
|
|
|
- cron: '0 10 * * *'
|
2020-08-18 17:40:31 +02:00
|
|
|
push:
|
|
|
|
branches:
|
2021-04-02 01:19:14 +02:00
|
|
|
- 'master'
|
|
|
|
- 'releases/v*'
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
2020-08-18 17:40:31 +02:00
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
main:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
buildx-version:
|
|
|
|
- ""
|
2023-08-26 13:30:57 +02:00
|
|
|
- "latest"
|
|
|
|
- "v0.4.1"
|
|
|
|
- "lab:latest"
|
|
|
|
- "lab:v0.11.2-desktop.2"
|
2020-08-18 17:40:31 +02:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:34:21 +02:00
|
|
|
uses: actions/checkout@v4
|
2020-08-18 17:40:31 +02:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
2022-09-18 02:24:38 +02:00
|
|
|
id: buildx
|
2020-08-18 17:40:31 +02:00
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
version: ${{ matrix.buildx-version }}
|
2022-09-18 02:24:38 +02:00
|
|
|
-
|
|
|
|
name: Nodes output
|
|
|
|
run: |
|
|
|
|
cat << EOF
|
|
|
|
${{ steps.buildx.outputs.nodes }}
|
|
|
|
EOF
|
2020-08-18 17:40:31 +02:00
|
|
|
|
|
|
|
multi:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:34:21 +02:00
|
|
|
uses: actions/checkout@v4
|
2020-08-18 17:40:31 +02:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx 1
|
|
|
|
uses: ./
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx 2
|
|
|
|
uses: ./
|
|
|
|
|
2021-04-23 22:43:09 +02:00
|
|
|
error:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:34:21 +02:00
|
|
|
uses: actions/checkout@v4
|
2021-04-23 22:43:09 +02:00
|
|
|
-
|
|
|
|
name: Stop docker
|
|
|
|
run: |
|
2023-08-26 13:42:53 +02:00
|
|
|
sudo systemctl stop docker docker.socket
|
2021-04-23 22:43:09 +02:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
id: buildx
|
|
|
|
continue-on-error: true
|
|
|
|
uses: ./
|
|
|
|
-
|
|
|
|
name: Check
|
|
|
|
run: |
|
|
|
|
echo "${{ toJson(steps.buildx) }}"
|
|
|
|
if [ "${{ steps.buildx.outcome }}" != "failure" ] || [ "${{ steps.buildx.conclusion }}" != "success" ]; then
|
|
|
|
echo "::error::Should have failed"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
-
|
|
|
|
name: Dump context
|
|
|
|
if: always()
|
2023-02-13 05:56:50 +01:00
|
|
|
uses: crazy-max/ghaction-dump-context@v2
|
2021-04-23 22:43:09 +02:00
|
|
|
|
2021-04-23 22:08:40 +02:00
|
|
|
debug:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:34:21 +02:00
|
|
|
uses: actions/checkout@v4
|
2021-04-23 22:08:40 +02:00
|
|
|
-
|
|
|
|
name: Create Dockerfile
|
|
|
|
run: |
|
|
|
|
cat > ./Dockerfile <<EOL
|
|
|
|
FROM alpine
|
|
|
|
RUN uname -a
|
|
|
|
EOL
|
|
|
|
-
|
|
|
|
name: Set up QEMU
|
2023-09-13 06:57:57 +02:00
|
|
|
uses: docker/setup-qemu-action@v3
|
2021-04-23 22:08:40 +02:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
buildkitd-flags: --debug
|
|
|
|
-
|
|
|
|
name: Build
|
2023-09-13 06:57:48 +02:00
|
|
|
uses: docker/build-push-action@v5
|
2021-04-23 22:08:40 +02:00
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
platforms: linux/amd64,linux/arm64,linux/ppc64le
|
|
|
|
|
2020-08-18 17:40:31 +02:00
|
|
|
install:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:34:21 +02:00
|
|
|
uses: actions/checkout@v4
|
2020-08-18 17:40:31 +02:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
install: true
|
|
|
|
-
|
|
|
|
name: Check cmd
|
|
|
|
run: |
|
|
|
|
docker build --help
|
|
|
|
|
|
|
|
use:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
use:
|
|
|
|
- true
|
|
|
|
- false
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:34:21 +02:00
|
|
|
uses: actions/checkout@v4
|
2020-08-18 17:40:31 +02:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
use: ${{ matrix.use }}
|
|
|
|
-
|
|
|
|
name: List builder instances
|
|
|
|
run: docker buildx ls
|
|
|
|
|
|
|
|
driver:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2020-09-03 16:23:15 +02:00
|
|
|
driver-opts:
|
2020-08-18 17:40:31 +02:00
|
|
|
- image=moby/buildkit:latest
|
2020-09-03 16:28:23 +02:00
|
|
|
- |
|
|
|
|
image=moby/buildkit:master
|
|
|
|
network=host
|
2020-08-18 17:40:31 +02:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:34:21 +02:00
|
|
|
uses: actions/checkout@v4
|
2020-08-18 17:40:31 +02:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
driver: docker-container
|
2020-09-03 16:28:23 +02:00
|
|
|
driver-opts: ${{ matrix.driver-opts }}
|
2020-08-18 17:40:31 +02:00
|
|
|
|
2020-08-27 02:41:25 +02:00
|
|
|
docker-driver:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:34:21 +02:00
|
|
|
uses: actions/checkout@v4
|
2020-08-27 02:41:25 +02:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: ./
|
|
|
|
id: builder
|
|
|
|
with:
|
|
|
|
driver: docker
|
|
|
|
-
|
|
|
|
name: Verify
|
|
|
|
run: |
|
|
|
|
[[ "${{ steps.builder.outputs.name }}" = "default" ]]
|
|
|
|
docker buildx inspect
|
|
|
|
docker buildx inspect | grep Driver | grep docker
|
|
|
|
docker buildx inspect | grep Status | grep running
|
|
|
|
|
2020-09-08 15:52:09 +02:00
|
|
|
endpoint:
|
2020-09-06 20:11:21 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
services:
|
|
|
|
dind:
|
|
|
|
image: docker:dind
|
|
|
|
options: >-
|
|
|
|
--privileged
|
|
|
|
--health-cmd "docker info"
|
|
|
|
--health-interval 10s
|
|
|
|
--health-timeout 5s
|
|
|
|
--health-retries 5
|
|
|
|
env:
|
|
|
|
DOCKER_TLS_CERTDIR: ""
|
|
|
|
ports:
|
|
|
|
- 2375:2375
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:34:21 +02:00
|
|
|
uses: actions/checkout@v4
|
2020-09-06 20:11:21 +02:00
|
|
|
-
|
|
|
|
name: Create context
|
|
|
|
run: |
|
|
|
|
docker context create mycontext --docker host=tcp://127.0.0.1:2375
|
|
|
|
-
|
|
|
|
name: Check context
|
|
|
|
run: |
|
|
|
|
docker --context mycontext info
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: ./
|
|
|
|
with:
|
2020-09-08 15:52:09 +02:00
|
|
|
endpoint: mycontext
|
2021-04-28 18:08:43 +02:00
|
|
|
env:
|
|
|
|
DOCKER_CONTEXT: mycontext
|
2020-09-06 20:11:21 +02:00
|
|
|
|
2021-04-23 22:26:59 +02:00
|
|
|
config:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:34:21 +02:00
|
|
|
uses: actions/checkout@v4
|
2021-04-23 22:26:59 +02:00
|
|
|
-
|
|
|
|
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
|
2023-09-13 06:57:48 +02:00
|
|
|
uses: docker/build-push-action@v5
|
2021-04-23 22:26:59 +02:00
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
|
2021-09-03 22:21:20 +02:00
|
|
|
config-inline:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:34:21 +02:00
|
|
|
uses: actions/checkout@v4
|
2021-09-03 22:21:20 +02:00
|
|
|
-
|
|
|
|
name: Create Dockerfile
|
|
|
|
run: |
|
|
|
|
cat > ./Dockerfile <<EOL
|
|
|
|
FROM alpine
|
|
|
|
EOL
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
buildkitd-flags: --debug
|
|
|
|
config-inline: |
|
|
|
|
debug = true
|
|
|
|
[registry."docker.io"]
|
|
|
|
mirrors = ["mirror.gcr.io"]
|
|
|
|
-
|
|
|
|
name: Build
|
2023-09-13 06:57:48 +02:00
|
|
|
uses: docker/build-push-action@v5
|
2021-09-03 22:21:20 +02:00
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
|
2020-08-24 14:07:14 +02:00
|
|
|
with-qemu:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
buildx-version:
|
2023-07-06 10:48:40 +02:00
|
|
|
- v0.9.1
|
2020-08-24 14:07:14 +02:00
|
|
|
- ""
|
|
|
|
qemu-platforms:
|
|
|
|
- all
|
|
|
|
- arm64,riscv64,arm
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:34:21 +02:00
|
|
|
uses: actions/checkout@v4
|
2020-08-24 14:07:14 +02:00
|
|
|
-
|
|
|
|
name: Set up QEMU
|
2023-09-13 06:57:57 +02:00
|
|
|
uses: docker/setup-qemu-action@v3
|
2020-08-24 14:07:14 +02:00
|
|
|
with:
|
|
|
|
platforms: ${{ matrix.qemu-platforms }}
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
2022-09-19 11:34:47 +02:00
|
|
|
id: buildx
|
2020-08-24 14:07:14 +02:00
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
version: ${{ matrix.buildx-version }}
|
2022-09-19 11:34:47 +02:00
|
|
|
-
|
|
|
|
name: List builder platforms
|
|
|
|
run: echo ${{ steps.buildx.outputs.platforms }}
|
2021-07-02 07:02:22 +02:00
|
|
|
|
|
|
|
build-ref:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
ref:
|
|
|
|
- master
|
|
|
|
- refs/tags/v0.5.1
|
2021-08-20 10:55:57 +02:00
|
|
|
- refs/pull/731/head
|
|
|
|
- cb185f095fd3d9444e0aa605d3789e9e05f2a1e7
|
2021-07-02 07:02:22 +02:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:34:21 +02:00
|
|
|
uses: actions/checkout@v4
|
2021-07-02 07:02:22 +02:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
version: https://github.com/docker/buildx.git#${{ matrix.ref }}
|
|
|
|
-
|
|
|
|
name: Create Dockerfile
|
|
|
|
run: |
|
|
|
|
cat > ./Dockerfile <<EOL
|
|
|
|
FROM alpine
|
|
|
|
EOL
|
|
|
|
-
|
|
|
|
name: Build
|
|
|
|
uses: docker/build-push-action@master
|
|
|
|
with:
|
|
|
|
context: .
|
2022-04-17 17:14:42 +02:00
|
|
|
|
2022-05-05 18:33:02 +02:00
|
|
|
standalone-cmd:
|
2022-04-17 17:14:42 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:34:21 +02:00
|
|
|
uses: actions/checkout@v4
|
2022-04-17 17:14:42 +02:00
|
|
|
-
|
|
|
|
name: Uninstall docker cli
|
|
|
|
run: |
|
2023-08-26 13:42:53 +02:00
|
|
|
if dpkg -s "docker-ce" >/dev/null 2>&1; then
|
|
|
|
sudo dpkg -r --force-depends docker-ce-cli docker-buildx-plugin
|
|
|
|
else
|
|
|
|
sudo apt-get purge -y moby-cli moby-buildx
|
|
|
|
fi
|
2022-04-17 17:14:42 +02:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: ./
|
|
|
|
-
|
2022-05-05 18:33:02 +02:00
|
|
|
name: Create Dockerfile
|
|
|
|
run: |
|
|
|
|
cat > ./Dockerfile <<EOL
|
|
|
|
FROM alpine
|
|
|
|
EOL
|
|
|
|
-
|
|
|
|
name: Build
|
2022-04-17 17:14:42 +02:00
|
|
|
run: |
|
2022-05-05 18:33:02 +02:00
|
|
|
buildx build .
|
2022-04-17 17:14:42 +02:00
|
|
|
|
2022-05-05 18:33:02 +02:00
|
|
|
standalone-action:
|
2022-04-17 17:14:42 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:34:21 +02:00
|
|
|
uses: actions/checkout@v4
|
2022-04-17 17:14:42 +02:00
|
|
|
-
|
|
|
|
name: Uninstall docker cli
|
|
|
|
run: |
|
2023-08-26 13:42:53 +02:00
|
|
|
if dpkg -s "docker-ce" >/dev/null 2>&1; then
|
|
|
|
sudo dpkg -r --force-depends docker-ce-cli docker-buildx-plugin
|
|
|
|
else
|
|
|
|
sudo apt-get purge -y moby-cli moby-buildx
|
|
|
|
fi
|
2022-04-17 17:14:42 +02:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: ./
|
|
|
|
with:
|
2022-05-05 18:33:02 +02:00
|
|
|
version: ${{ matrix.buildx-version }}
|
2022-04-17 17:14:42 +02:00
|
|
|
-
|
2022-05-05 18:33:02 +02:00
|
|
|
name: Create Dockerfile
|
2022-04-17 17:14:42 +02:00
|
|
|
run: |
|
2022-05-05 18:33:02 +02:00
|
|
|
cat > ./Dockerfile <<EOL
|
|
|
|
FROM alpine
|
|
|
|
EOL
|
|
|
|
-
|
|
|
|
name: Build
|
|
|
|
uses: docker/build-push-action@master
|
|
|
|
with:
|
|
|
|
context: .
|
2022-04-17 17:14:42 +02:00
|
|
|
|
2022-05-05 18:33:02 +02:00
|
|
|
standalone-install-error:
|
2022-04-17 17:14:42 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:34:21 +02:00
|
|
|
uses: actions/checkout@v4
|
2022-04-17 17:14:42 +02:00
|
|
|
-
|
2022-05-05 18:33:02 +02:00
|
|
|
name: Uninstall docker cli
|
2022-04-17 17:14:42 +02:00
|
|
|
run: |
|
2023-08-26 13:42:53 +02:00
|
|
|
if dpkg -s "docker-ce" >/dev/null 2>&1; then
|
|
|
|
sudo dpkg -r --force-depends docker-ce-cli docker-buildx-plugin
|
|
|
|
else
|
|
|
|
sudo apt-get purge -y moby-cli moby-buildx
|
|
|
|
fi
|
2022-04-17 17:14:42 +02:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
2022-05-05 18:33:02 +02:00
|
|
|
id: buildx
|
|
|
|
continue-on-error: true
|
2022-04-17 17:14:42 +02:00
|
|
|
uses: ./
|
|
|
|
with:
|
2022-05-05 18:33:02 +02:00
|
|
|
install: true
|
2022-04-17 17:14:42 +02:00
|
|
|
-
|
2022-05-05 18:33:02 +02:00
|
|
|
name: Check
|
2022-04-17 17:14:42 +02:00
|
|
|
run: |
|
2022-05-05 18:33:02 +02:00
|
|
|
echo "${{ toJson(steps.buildx) }}"
|
|
|
|
if [ "${{ steps.buildx.outcome }}" != "failure" ] || [ "${{ steps.buildx.conclusion }}" != "success" ]; then
|
|
|
|
echo "::error::Should have failed"
|
|
|
|
exit 1
|
|
|
|
fi
|
2022-09-19 11:34:47 +02:00
|
|
|
|
|
|
|
append:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:34:21 +02:00
|
|
|
uses: actions/checkout@v4
|
2022-09-19 11:34:47 +02:00
|
|
|
-
|
|
|
|
name: Create dummy contexts
|
|
|
|
run: |
|
|
|
|
docker context create ctxbuilder2
|
|
|
|
docker context create ctxbuilder3
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
id: buildx
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
append: |
|
|
|
|
- name: builder2
|
|
|
|
endpoint: ctxbuilder2
|
|
|
|
platforms: linux/amd64
|
|
|
|
driver-opts:
|
|
|
|
- image=moby/buildkit:master
|
|
|
|
- network=host
|
|
|
|
- endpoint: ctxbuilder3
|
|
|
|
platforms: linux/arm64
|
|
|
|
-
|
|
|
|
name: List builder platforms
|
|
|
|
run: echo ${{ steps.buildx.outputs.platforms }}
|
2022-09-22 11:54:00 +02:00
|
|
|
|
|
|
|
platforms:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:34:21 +02:00
|
|
|
uses: actions/checkout@v4
|
2022-09-22 11:54:00 +02:00
|
|
|
-
|
|
|
|
name: Set up QEMU
|
2023-09-13 06:57:57 +02:00
|
|
|
uses: docker/setup-qemu-action@v3
|
2022-09-22 11:54:00 +02:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
platforms: linux/amd64
|
2023-02-25 16:16:08 +01:00
|
|
|
|
|
|
|
docker-context:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:34:21 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-02-25 16:16:08 +01:00
|
|
|
-
|
|
|
|
name: Create Docker context
|
|
|
|
run: |
|
|
|
|
docker context create foo
|
|
|
|
docker context use foo
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
driver: docker
|
2023-03-03 11:56:21 +01:00
|
|
|
|
|
|
|
cleanup:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
cleanup:
|
|
|
|
- true
|
|
|
|
- false
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:34:21 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-03-03 11:56:21 +01:00
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
cleanup: ${{ matrix.cleanup }}
|
2023-03-10 19:20:51 +01:00
|
|
|
|
|
|
|
k3s:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
version:
|
2023-07-06 10:48:40 +02:00
|
|
|
- v0.11.0
|
2023-03-10 19:20:51 +01:00
|
|
|
- v0.10.5
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 06:34:21 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-03-10 19:20:51 +01:00
|
|
|
-
|
|
|
|
name: Install k3s
|
|
|
|
uses: crazy-max/.github/.github/actions/install-k3s@605d30d5ae97f6680578ace4b56645af79343e60
|
|
|
|
with:
|
|
|
|
version: "v1.21.2-k3s1"
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
id: buildx
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
version: ${{ matrix.version }}
|
|
|
|
driver: kubernetes
|
|
|
|
platforms: linux/amd64
|
|
|
|
driver-opts: |
|
|
|
|
image=moby/buildkit:buildx-stable-1
|
|
|
|
qemu.install=true
|
|
|
|
append: |
|
|
|
|
- platforms: linux/arm64
|
|
|
|
driver-opts:
|
|
|
|
- image=moby/buildkit:buildx-stable-1
|
|
|
|
- qemu.install=true
|
|
|
|
- platforms: linux/s390x
|
|
|
|
driver-opts:
|
|
|
|
- image=moby/buildkit:buildx-stable-1
|
|
|
|
- qemu.install=true
|
|
|
|
-
|
|
|
|
name: Create Dockerfile
|
|
|
|
run: |
|
|
|
|
cat > ./Dockerfile <<EOL
|
|
|
|
FROM alpine
|
|
|
|
RUN uname -a
|
|
|
|
EOL
|
|
|
|
-
|
|
|
|
name: Build
|
|
|
|
uses: docker/build-push-action@master
|
|
|
|
with:
|
|
|
|
context: .
|
2024-02-23 10:51:47 +01:00
|
|
|
|
|
|
|
cacheBinary:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
cache:
|
|
|
|
- true
|
|
|
|
- false
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
-
|
|
|
|
name: Set up Docker Buildx
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
version: v0.11.2
|
|
|
|
cache-binary: ${{ matrix.cache }}
|