Update main.yml

This commit is contained in:
Logan Marchione 2022-12-28 21:59:08 +00:00 committed by GitHub
parent 407b794043
commit cbb67c7319
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ env:
REPO: docker-webdav-nginx REPO: docker-webdav-nginx
jobs: jobs:
ubuntu_ci: ci:
name: Build and test name: Build and test
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -47,17 +47,22 @@ jobs:
docker run --name test-container --detach --env WEBDAV_USER=user --env WEBDAV_PASS=password1 --volume 'webdav:/var/www/webdav' ${USER}/${REPO}:${VERSION} docker run --name test-container --detach --env WEBDAV_USER=user --env WEBDAV_PASS=password1 --volume 'webdav:/var/www/webdav' ${USER}/${REPO}:${VERSION}
docker ps -a docker ps -a
- name: Container scan - name: Container scan with Dockle
uses: azure/container-scan@v0 uses: docker://goodwithtech/dockle:v0.4.9
with: with:
image-name: ${{ env.USER }}/${{ env.REPO }}:${{ env.VERSION }} args: '--exit-code 1 --format list ${{ env.USER }}/${{ env.REPO }}:${{ env.VERSION }}'
severity-threshold: CRITICAL
run-quality-checks: true
ubuntu_cd: - name: Container scan with Trivy
uses: aquasecurity/trivy-action@0.8.0
with:
scan-type: 'image'
image-ref: '${{ env.USER }}/${{ env.REPO }}:${{ env.VERSION }}'
trivy-config: ./github/trivy.yaml
cd:
name: Deploy name: Deploy
needs: ubuntu_ci needs: ci
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: