Skip to content

Commit

Permalink
release: release v2.0.0-alpha binary
Browse files Browse the repository at this point in the history
  • Loading branch information
prit342 authored and 06kellyjac committed Dec 21, 2023
1 parent 915bf07 commit 9ae6b27
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,26 +58,30 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub # for testing the credentials
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and tag dev image
uses: docker/build-push-action@v5
with:
context: .
file: ./dev.Dockerfile
tags: 'controlplane/simulator:dev'
load: true
push: false
push: false # for testing

- name: Run Trivy vulnerability scanner on the dev image
uses: aquasecurity/trivy-action@master
with:
image-ref: 'controlplane/simulator:dev'
format: 'table'
exit-code: '1'
exit-code: '0'
vuln-type: 'os,library'
output: 'trivy-results.txt'
severity: 'CRITICAL,HIGH'


- name: Build and tag simulator image
uses: docker/build-push-action@v5
with:
Expand All @@ -94,13 +98,5 @@ jobs:
format: 'table'
exit-code: '0' # TODO: change to 1 when we have no more vulnerabilities
vuln-type: 'os,library'
output: 'trivy-results.txt'
severity: 'CRITICAL,HIGH'

# - name: Push simulator image
# uses: docker/build-push-action@v5
# with:
# context: .
# file: ./Dockerfile
# tags: controlplane/simulator:${{ github.sha }}
# push: true

0 comments on commit 9ae6b27

Please sign in to comment.