Skip to content

Commit e911953

Browse files
jnewton03claude
andauthored
fix: enable Docker Buildx to eliminate legacy builder deprecation warnings (#461)
* fix: enable Docker Buildx to eliminate legacy builder deprecation warnings Adds Docker Buildx setup to test.yml and trivy.yml workflows to resolve deprecation warnings and align with production workflows. Changes: - test.yml: Add docker/setup-buildx-action@v3 after macOS Docker setup - trivy.yml: Add docker/setup-buildx-action@v3 before image builds Benefits: - Removes "The legacy builder is deprecated" warnings from all workflows - Aligns with production workflows (create-release.yml, build-qa-docker.yml) - Enables BuildKit for faster builds and better caching - No changes required to existing docker build commands - Future-proofs workflows before legacy builder removal All workflows now use consistent Docker build approach: ✅ create-release.yml - Already using Buildx ✅ build-qa-docker.yml - Already using Buildx ✅ test.yml - Now using Buildx (this PR) ✅ trivy.yml - Now using Buildx (this PR) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * fix: add Docker Buildx to scout job in trivy.yml Adds Docker Buildx setup to the scout job (Docker Scout security scanning) to eliminate remaining legacy builder deprecation warnings. Changes: - trivy.yml: Add docker/setup-buildx-action@v3 to scout job (line 124-125) This completes the repository-wide elimination of legacy builder warnings: ✅ test.yml - Main build uses Buildx (line 40-41) ✅ test.yml - Custom entrypoint builds use Buildx (inherited from line 40-41) ✅ trivy.yml - Trivy scan job uses Buildx (line 55-56) ✅ trivy.yml - Scout scan job uses Buildx (line 124-125, this commit) Addresses CodeRabbit review feedback on PR #461. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
1 parent a02fa3e commit e911953

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ jobs:
3636
- name: Setup Docker on macOS
3737
if: matrix.os == 'macos-15-intel'
3838
uses: douglascamata/[email protected]
39-
39+
40+
- name: Set up Docker Buildx
41+
uses: docker/setup-buildx-action@v3
42+
4043
- name: Build an image from ${{ matrix.dockerfile }}
4144
run: |
4245
docker build -f ${{ matrix.dockerfile }} -t liquibase/liquibase:${{ github.sha }} .

.github/workflows/trivy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ jobs:
6161
,/vault/liquibase
6262
parse-json-secrets: true
6363

64+
- name: Set up Docker Buildx
65+
uses: docker/setup-buildx-action@v3
66+
6467
- name: Build ${{ matrix.image.name }}${{ matrix.image.suffix }} from Dockerfile
6568
run: |
6669
docker build -f ${{ matrix.image.dockerfile }} -t ${{ matrix.image.name }}${{ matrix.image.suffix }}:${{ github.sha }} .
@@ -249,6 +252,9 @@ jobs:
249252
- name: Checkout code
250253
uses: actions/checkout@v6
251254

255+
- name: Set up Docker Buildx
256+
uses: docker/setup-buildx-action@v3
257+
252258
- name: Build ${{ matrix.image.name }}${{ matrix.image.suffix }} from Dockerfile
253259
run: |
254260
docker build -f ${{ matrix.image.dockerfile }} -t ${{ matrix.image.name }}${{ matrix.image.suffix }}:${{ github.sha }} .

0 commit comments

Comments
 (0)