2020 REGISTRY_DOCKER : docker.io
2121 IMAGE_NAME : kubb-agent
2222
23+ permissions : {}
24+
2325jobs :
2426 build-and-push :
2527 runs-on : ubuntu-latest
@@ -41,30 +43,30 @@ jobs:
4143 node-version : ' 22'
4244
4345 - name : Set up Docker Buildx
44- uses : docker/setup-buildx-action@v3
46+ uses : docker/setup-buildx-action@v4
4547
4648 - name : Build
4749 run : pnpm run build
4850
4951 - name : Log in to GitHub Container Registry
5052 if : github.event_name != 'pull_request'
51- uses : docker/login-action@v3
53+ uses : docker/login-action@v4
5254 with :
5355 registry : ${{ env.REGISTRY_GHCR }}
5456 username : ${{ github.actor }}
5557 password : ${{ secrets.GITHUB_TOKEN }}
5658
5759 - name : Log in to Docker Hub
5860 if : github.event_name != 'pull_request'
59- uses : docker/login-action@v3
61+ uses : docker/login-action@v4
6062 with :
6163 registry : ${{ env.REGISTRY_DOCKER }}
6264 username : ${{ secrets.DOCKERHUB_USERNAME }}
6365 password : ${{ secrets.DOCKERHUB_TOKEN }}
6466
6567 - name : Extract metadata
6668 id : meta
67- uses : docker/metadata-action@v5
69+ uses : docker/metadata-action@v6
6870 with :
6971 images : |
7072 ${{ env.REGISTRY_GHCR }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
8183
8284 - name : Build and push Docker image
8385 id : push
84- uses : docker/build-push-action@v6
86+ uses : docker/build-push-action@v7
8587 with :
8688 context : ./packages/agent
8789 file : ./packages/agent/Dockerfile
9698
9799 - name : Generate artifact attestation
98100 if : github.event_name != 'pull_request'
99- uses : actions/attest-build-provenance@v3
101+ uses : actions/attest-build-provenance@v4
100102 continue-on-error : true
101103 with :
102104 subject-name : ${{ env.REGISTRY_GHCR }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
0 commit comments