Skip to content

Commit

Permalink
1.0.67 Improve build resiliency
Browse files Browse the repository at this point in the history
  • Loading branch information
webpwnized committed Aug 15, 2024
1 parent 00c35a9 commit 31cdd41
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build-and-push-to-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ jobs:
echo "VERSION=$VERSION" >> $GITHUB_ENV
shell: bash

- name: Print Working Directory
id: print_current_directory
run: |
echo ""
echo "STATUS: Current directory:$(pwd)"
echo ""
shell: bash

# Step 3: Set up QEMU on the runner.
- name: Set up QEMU on the runner
uses: docker/setup-qemu-action@master
Expand Down Expand Up @@ -69,7 +77,7 @@ jobs:
echo ""
shell: bash

- name: Build and Export Container to Docker
- name: Build and Load Container
uses: docker/build-push-action@master
with:
context: .build/${{ matrix.container_name }}/
Expand All @@ -96,15 +104,15 @@ jobs:
sarif_file: '${{ matrix.container_name }}-trivy-scan-results.sarif'
category: ${{ matrix.container_name }}

- name: Build and push Container
- name: Push Container
uses: docker/build-push-action@master
with:
context: .build/${{ matrix.container_name }}/
file: ./Dockerfile
push: true
tags: webpwnized/mutillidae:${{ matrix.container_name }}

- name: Build and push Container with version number
- name: Push Container with version number
uses: docker/build-push-action@master
with:
context: .build/${{ matrix.container_name }}/
Expand Down

0 comments on commit 31cdd41

Please sign in to comment.