Skip to content

Commit

Permalink
Remove trivy scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
keizer619 authored Oct 8, 2021
1 parent cae3050 commit 0253d45
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,38 +58,38 @@ jobs:
run: |
./gradlew build -Pversion=${VERSION}
./gradlew release -Prelease.useAutomaticVersion=true -x test
- name: Checkout docker repo
uses: actions/checkout@v2
with:
repository: ballerina-platform/module-ballerina-docker
path: module-ballerina-docker
- name: Copy zip artifact
run: cp ballerina/build/distributions/ballerina-sl*.zip module-ballerina-docker/base/docker/
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Build the docker image
id: docker_build
uses: docker/build-push-action@v2
with:
context: module-ballerina-docker/base/docker/
load: true
push: false
tags: ballerina/ballerina:nightly-test
build-args: |
BALLERINA_DIST=ballerina-${{ steps.version-set.outputs.sversion }}.zip
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: 'ballerina/ballerina:nightly-test'
format: 'table'
exit-code: '1'
# - name: Checkout docker repo
# uses: actions/checkout@v2
# with:
# repository: ballerina-platform/module-ballerina-docker
# path: module-ballerina-docker
# - name: Copy zip artifact
# run: cp ballerina/build/distributions/ballerina-sl*.zip module-ballerina-docker/base/docker/
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v1
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
# - name: Login to DockerHub
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKER_HUB_USER }}
# password: ${{ secrets.DOCKER_HUB_TOKEN }}
# - name: Build the docker image
# id: docker_build
# uses: docker/build-push-action@v2
# with:
# context: module-ballerina-docker/base/docker/
# load: true
# push: false
# tags: ballerina/ballerina:nightly-test
# build-args: |
# BALLERINA_DIST=ballerina-${{ steps.version-set.outputs.sversion }}.zip
# - name: Run Trivy vulnerability scanner
# uses: aquasecurity/trivy-action@master
# with:
# image-ref: 'ballerina/ballerina:nightly-test'
# format: 'table'
# exit-code: '1'
- name: Create release
id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit 0253d45

Please sign in to comment.