Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build-docker-images-for-testing.yml | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
persist-credentials: false | ||
- name: Read Docker Image Identifiers | ||
id: read-docker-image-identifiers | ||
run: echo "IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0 | ||
with: | ||
buildkitd-flags: --debug | ||
driver-opts: image=moby/buildkit:master # needed to get the fix for https://github.com/moby/buildkit/issues/2426 | ||
- name: Build | ||
id: docker_build | ||
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6.13.0 | ||
timeout-minutes: 10 | ||
env: | ||
DOCKER_BUILD_CHECKS_ANNOTATIONS: false | ||
with: | ||
context: . | ||
push: false | ||
tags: defectdojo/defectdojo-${{ matrix.docker-image }}:${{ matrix.os }} | ||
file: Dockerfile.${{ matrix.docker-image }}-${{ matrix.os }} | ||
outputs: type=docker,dest=${{ matrix.docker-image }}-${{ matrix.os }}_img | ||
# export docker images to be used in next jobs below | ||
- name: Upload image ${{ matrix.docker-image }} as artifact | ||
timeout-minutes: 10 | ||
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 | ||
with: | ||
name: built-docker-image-${{ matrix.docker-image }}-${{ matrix.os }} | ||
path: ${{ matrix.docker-image }}-${{ matrix.os }}_img | ||
retention-days: 1 |