File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,31 +10,25 @@ jobs:
1010 runs-on : ubuntu-latest
1111
1212 steps :
13+ - name : Set up Docker Buildx
14+ uses : docker/setup-buildx-action@v3
15+
1316 - name : Checkout Repository
1417 uses : actions/checkout@v6
1518
16- - name : Build Docker Image
17- shell : bash
18- run : |
19- docker build -f ./Dockerfile -t finos/git-proxy:latest .
20-
21- # - name: Scan Image with Trivy
22- # uses: aquasecurity/trivy-action@0.28.0
23- # with:
24- # image-ref: finos/git-proxy:latest
25- # format: table
26- # exit-code: '1'
27- # severity: HIGH,CRITICAL
28-
2919 - name : Log in to Docker Hub
3020 if : github.ref == 'refs/heads/main' && github.repository == 'finos/git-proxy'
3121 uses : docker/login-action@v3
3222 with :
3323 username : finos
3424 password : ${{ secrets.DOCKER_PASSWORD }}
3525
36- - name : Publish Docker Image
26+ - name : Build and Publish Docker Image
3727 if : github.ref == 'refs/heads/main' && github.repository == 'finos/git-proxy'
38- shell : bash
39- run : |
40- docker push finos/git-proxy:latest
28+ uses : docker/build-push-action@v6
29+ with :
30+ context : .
31+ file : Dockerfile
32+ push : true
33+ tags : finos/git-proxy:latest
34+ provenance : true
You can’t perform that action at this time.
0 commit comments