Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/buildx-smoke-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Buildx Smoke Test

on:
pull_request:
paths:
- ".github/workflows/buildx-smoke-test.yml"

permissions:
contents: read

jobs:
smoke-test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v4.2.2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4

- name: Inspect builder
run: docker buildx inspect --bootstrap

- name: Write smoke test Dockerfile
run: |
mkdir -p "$RUNNER_TEMP/buildx-smoke"
cat <<'EOF' > "$RUNNER_TEMP/buildx-smoke/Dockerfile"
FROM alpine:3.21
RUN printf 'buildx smoke test\n' > /smoke.txt
CMD ["cat", "/smoke.txt"]
EOF

- name: Build smoke test image
uses: docker/build-push-action@v7
with:
context: ${{ runner.temp }}/buildx-smoke
file: ${{ runner.temp }}/buildx-smoke/Dockerfile
load: true
platforms: linux/amd64
provenance: false
push: false
tags: local/buildx-smoke:${{ github.run_id }}

- name: Run smoke test image
run: docker run --rm local/buildx-smoke:${{ github.run_id }}
Loading