66 push :
77 branches :
88 - main
9- paths :
10- - " Dockerfile"
11- - " .github/workflows/docker_build.yml"
129 pull_request :
1310 branches :
1411 - main
1815 types : [opened, synchronize, reopened, ready_for_review]
1916 # workflow_dispatch: # Add this line to enable manual trigger
2017
18+ env :
19+ BUILDKIT_PROGRESS : plain
20+
2121jobs :
2222 build :
2323 runs-on : ubuntu-latest
@@ -34,16 +34,16 @@ jobs:
3434 swap-storage : true
3535
3636 - name : Checkout
37- uses : actions/checkout@v5.0.0
37+ uses : actions/checkout@v6
3838
3939 - name : Set up Buildx
40- uses : docker/setup-buildx-action@v3.11.1
40+ uses : docker/setup-buildx-action@v4.0.0
4141
4242 # ----- PR and non-main branch steps -----
4343 # For PRs: Build image but do not push and run smoke tests
4444 - name : Build Docker Image (No Push)
4545 if : github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref != 'refs/heads/main')
46- uses : docker/build-push-action@v6.18 .0
46+ uses : docker/build-push-action@v7.1 .0
4747 with :
4848 context : .
4949 file : ./Dockerfile
6363 # For pushes to main: Build, run smoke tests, and push to Docker Hub
6464 - name : Build test stage (main)
6565 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
66- uses : docker/build-push-action@v6.18 .0
66+ uses : docker/build-push-action@v7.1 .0
6767 with :
6868 context : .
6969 file : ./Dockerfile
@@ -80,14 +80,14 @@ jobs:
8080
8181 - name : Login to Docker Hub
8282 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
83- uses : docker/login-action@v3.5 .0
83+ uses : docker/login-action@v4.1 .0
8484 with :
8585 username : ${{ secrets.DOCKERHUB_USERNAME }}
8686 password : ${{ secrets.DOCKERHUB_TOKEN }}
8787
8888 - name : Build final and push (main)
8989 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
90- uses : docker/build-push-action@v6.18 .0
90+ uses : docker/build-push-action@v7.1 .0
9191 with :
9292 context : .
9393 file : ./Dockerfile
0 commit comments