Skip to content

Commit 691b925

Browse files
committed
chore: add attestation to regular docker publish action, remove extra test action
1 parent 57a1080 commit 691b925

2 files changed

Lines changed: 11 additions & 54 deletions

File tree

.github/workflows/docker-publish-attestation.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/docker-publish.yml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)