Skip to content

Commit d5ccebd

Browse files
committed
fix(ci): install docker buildx before PR image build
The self-hosted runner has no BuildKit/buildx installed. Add docker/setup-buildx-action@v3 step to install it, then use docker buildx build --load for the PR image build.
1 parent d1f2d94 commit d5ccebd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/integration.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,18 @@ jobs:
122122
with:
123123
ref: refs/pull/${{ inputs.pr }}/merge
124124

125+
- name: Set up Docker Buildx
126+
if: inputs.pr != ''
127+
uses: docker/setup-buildx-action@v3
128+
125129
- name: Build PR image
126130
if: inputs.pr != ''
127-
env:
128-
DOCKER_BUILDKIT: '1'
129131
run: |
130132
PR_TAG="pr-${{ inputs.pr }}"
131133
IMAGE="ghcr.io/fenio/tns-csi:${PR_TAG}"
132134
echo "=== Building image from PR #${{ inputs.pr }} ==="
133-
docker build \
135+
docker buildx build \
136+
--load \
134137
--build-arg VERSION="0.0.0-${PR_TAG}" \
135138
--build-arg GIT_COMMIT="$(git rev-parse --short HEAD)" \
136139
--build-arg BUILD_DATE="$(date -u +%Y-%m-%dT%H:%M:%SZ)" \

0 commit comments

Comments
 (0)