Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
webpwnized committed Sep 24, 2024
2 parents 3d7d98d + d04db89 commit 1570369
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-scan-push-to-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
steps:
# Step 1: Check out the mutillidae-docker repository codebase into the `mutillidae-docker` directory.
- name: Check out the mutillidae-docker codebase
uses: actions/checkout@v2
uses: actions/checkout@main
with:
repository: webpwnized/mutillidae-docker
path: mutillidae-docker # Check out the code to this directory
Expand All @@ -47,15 +47,15 @@ jobs:

# Step 3: Set up QEMU on the runner to support different architectures.
- name: Set up QEMU on the runner
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@master

# Step 4: Set up Docker Buildx, a CLI plugin that allows for multi-platform builds.
- name: Set up Docker Buildx on the runner
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@master

# Step 5: Log in to Docker Hub using secrets stored in the GitHub repository.
- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@master
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -72,7 +72,7 @@ jobs:

# Step 7: Build and load the container using Docker Buildx.
- name: Build and Load Container
uses: docker/build-push-action@v2
uses: docker/build-push-action@master
with:
context: mutillidae-docker/.build/${{ matrix.container_name }}/ # Adjust path based on the working directory
file: mutillidae-docker/.build/${{ matrix.container_name }}/Dockerfile
Expand All @@ -95,14 +95,14 @@ jobs:

# Step 10: Upload the Trivy scan results to the GitHub Security tab.
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v1
uses: github/codeql-action/upload-sarif@main
with:
sarif_file: '${{ matrix.container_name }}-trivy-scan-results.sarif'
category: ${{ matrix.container_name }}

# Step 11: Push the container to Docker Hub.
- name: Push Container
uses: docker/build-push-action@v2
uses: docker/build-push-action@master
with:
context: mutillidae-docker/.build/${{ matrix.container_name }}/ # Adjust path based on the working directory
file: mutillidae-docker/.build/${{ matrix.container_name }}/Dockerfile
Expand All @@ -111,7 +111,7 @@ jobs:

# Step 12: Push the container with the version number to Docker Hub.
- name: Push Container with version number
uses: docker/build-push-action@v2
uses: docker/build-push-action@master
with:
context: mutillidae-docker/.build/${{ matrix.container_name }}/ # Adjust path based on the working directory
file: mutillidae-docker/.build/${{ matrix.container_name }}/Dockerfile
Expand Down

0 comments on commit 1570369

Please sign in to comment.