Skip to content

Commit

Permalink
add all Platforms, fix for trivy
Browse files Browse the repository at this point in the history
  • Loading branch information
Knight1 committed Oct 18, 2024
1 parent 57c6795 commit 574b779
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
platforms: all
push: true
tags: |
knight/cloudflared-dns:latest
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@ jobs:

- name: Build an image from Dockerfile
run: |
docker build -t visibilityspots/cloudflared:dev .
docker build -t knight/cloudflared-dev:dev .
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@0.24.0
uses: aquasecurity/trivy-action@0.28.0
with:
image-ref: 'Knight1/cloudflared:dev'
image-ref: 'knight/cloudflared-dev:dev'
format: 'table'
exit-code: 0
ignore-unfixed: true
severity: 'CRITICAL,HIGH'
severity: 'UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL'

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@0.24.0
uses: aquasecurity/trivy-action@0.28.0
with:
image-ref: 'Knight1/cloudflared:dev'
image-ref: 'knight/cloudflared-dev:dev'
format: 'sarif'
output: 'trivy-results.sarif'
ignore-unfixed: true
severity: 'CRITICAL,HIGH'
severity: 'UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ version: "2"

services:
cloudflared:
image: Knight1/cloudflared
image: knight1/cloudflared-dns
container_name: cloudflared
ports:
- "54:53/tcp"
- "54:53/udp"
environment:
TZ: ${TIMEZONE}
PORT: 54
PORT: 53
ADDRESS: 0.0.0.0
restart: always
networks:
Expand Down

0 comments on commit 574b779

Please sign in to comment.