Skip to content

Commit

Permalink
1.0.50 Add variables to the github action
Browse files Browse the repository at this point in the history
  • Loading branch information
webpwnized committed Oct 16, 2023
1 parent b700c57 commit 4fbb1c7
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/build-and-push-to-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,45 +42,45 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

-
name: Build and Export ${{ env,DATABASE_CONTAINER_NAME }} Container to Docker
name: Build and Export ${{ env.DATABASE_CONTAINER_NAME }} Container to Docker
uses: docker/build-push-action@v5
with:
context: .
file: ./${{ env,DATABASE_CONTAINER_NAME }}/Dockerfile
file: ./${{ env.DATABASE_CONTAINER_NAME }}/Dockerfile
load: true
tags: webpwnized/mutillidae:${{ env,DATABASE_CONTAINER_NAME }}
tags: webpwnized/mutillidae:${{ env.DATABASE_CONTAINER_NAME }}

-
name: Run Trivy vulnerability scanner on ${{ env,DATABASE_CONTAINER_NAME }} Container
name: Run Trivy vulnerability scanner on ${{ env.DATABASE_CONTAINER_NAME }} Container
uses: aquasecurity/trivy-action@master
with:
image-ref: 'webpwnized/mutillidae:${{ env,DATABASE_CONTAINER_NAME }}'
image-ref: 'webpwnized/mutillidae:${{ env.DATABASE_CONTAINER_NAME }}'
format: 'sarif'
output: '${{ env,DATABASE_CONTAINER_NAME }}-trivy-scan-results.sarif'
output: '${{ env.DATABASE_CONTAINER_NAME }}-trivy-scan-results.sarif'

-
name: Upload ${{ env,DATABASE_CONTAINER_NAME }} Container Trivy scan results to GitHub Security tab
name: Upload ${{ env.DATABASE_CONTAINER_NAME }} Container Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: '${{ env,DATABASE_CONTAINER_NAME }}-trivy-scan-results.sarif'
sarif_file: '${{ env.DATABASE_CONTAINER_NAME }}-trivy-scan-results.sarif'

-
name: Build and push ${{ env,DATABASE_CONTAINER_NAME }} container
name: Build and push ${{ env.DATABASE_CONTAINER_NAME }} container
uses: docker/build-push-action@v5
with:
context: .
file: ./${{ env,DATABASE_CONTAINER_NAME }}/Dockerfile
file: ./${{ env.DATABASE_CONTAINER_NAME }}/Dockerfile
push: true
tags: webpwnized/mutillidae:${{ env,DATABASE_CONTAINER_NAME }}
tags: webpwnized/mutillidae:${{ env.DATABASE_CONTAINER_NAME }}

-
name: Build and push ${{ env,DATABASE_CONTAINER_NAME }} container with version number
name: Build and push ${{ env.DATABASE_CONTAINER_NAME }} container with version number
uses: docker/build-push-action@v5
with:
context: .
file: ./${{ env,DATABASE_CONTAINER_NAME }}/Dockerfile
file: ./${{ env.DATABASE_CONTAINER_NAME }}/Dockerfile
push: true
tags: webpwnized/mutillidae:${{ env,DATABASE_CONTAINER_NAME }}-${{ env.VERSION }}
tags: webpwnized/mutillidae:${{ env.DATABASE_CONTAINER_NAME }}-${{ env.VERSION }}

-
name: Build and push database_admin container
Expand Down

0 comments on commit 4fbb1c7

Please sign in to comment.