diff --git a/.github/workflows/docker_imagescan.yml b/.github/workflows/docker_imagescan.yml index 5981ac140e7..c6e1ad168d1 100644 --- a/.github/workflows/docker_imagescan.yml +++ b/.github/workflows/docker_imagescan.yml @@ -29,6 +29,28 @@ jobs: docker-images: ["auth-server", "certmanager", "config-api", "configurator", "fido2", "persistence-loader", "scim", "monolith"] steps: - uses: actions/checkout@v3 + + # UPDATE BUILD DATES INSIDE THE DOCKERFILE BEFORE BUILDING THE DEV IMAGES TRIGGERED BY JENKINS + - name: Setup Python 3.7 + if: github.event_name == 'workflow_dispatch' + uses: actions/setup-python@v4 + with: + python-version: 3.7 + - name: Install Python dependencies + if: github.event_name == 'workflow_dispatch' + run: | + sudo apt-get update + sudo python3 -m pip install --upgrade pip + sudo pip3 install setuptools --upgrade + sudo pip3 install -r ./automation/requirements.txt + sudo apt-get update + sudo apt-get install jq + - name: Update Build date in Dockerfile + if: github.event_name == 'workflow_dispatch' + id: update_build_date_in_dockerfile + run: | + sudo python3 ./automation/auto_update_build_date.py + #END UPDATE BUILD DATES INSIDE THE DOCKERFILE BEFORE BUILDING THE DEV IMAGES TRIGGERED BY JENKINS - name: Build the Container image run: docker build ./docker-jans-${{ matrix.docker-images }} --file ./docker-jans-${{ matrix.docker-images }}/Dockerfile --tag localbuild/scanimage:latest - uses: anchore/scan-action@v3