Skip to content

Bump cryptography from 40.0.2 to 41.0.2 #374

Bump cryptography from 40.0.2 to 41.0.2

Bump cryptography from 40.0.2 to 41.0.2 #374

Workflow file for this run

name: Test Build Docker Images
on:
push:
branches:
- '*'
paths-ignore:
- '**.md'
pull_request:
branches:
- '*'
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
env:
DOCKER_CLI_EXPERIMENTAL: enabled
DOCKER_BUILDKIT: '1'
strategy:
matrix:
group: [img-common-1] # Extra groups come from the include next
include:
- group: img-common-1
type: IMAGE
name: common
version: 1-clang7
test: common
- group: img-common-2
type: IMAGE
name: common
version: 2-clang10
test: common
- group: img-common-3
type: IMAGE
name: common
version: 3-clang14
test: common
- group: pkg-base-2022
type: PACKAGE
name: base1
common_version: 2-clang10
version: 2021
test: ""
- group: pkg-base-2023
type: PACKAGE
name: base1
common_version: 3-clang14
version: 2023
test: ""
- group: img-base-2023
type: IMAGE
name: base
common_version: 3-clang14
version: 2023
test: base
- group: img-vfx1-2022
type: IMAGE
name: vfx1
common_version: 2-clang10
version: 2022
test: openvdb
- group: img-vfx2-2023
type: IMAGE
name: vfx2
common_version: 3-clang14
version: 2023
test: ""
- group: img-vfx3-2023
type: IMAGE
name: vfx3
common_version: 3-clang14
version: 2023
test: ""
steps:
- uses: actions/checkout@v3
- name: Activate Docker buildx
run: |
mkdir -p ~/.docker/cli-plugins
curl --location https://github.com/docker/buildx/releases/download/v0.10.2/buildx-v0.10.2.linux-amd64 -o ~/.docker/cli-plugins/docker-buildx
chmod a+x ~/.docker/cli-plugins/docker-buildx
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: 'pipenv'
- name: Install pipenv
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python
- name: Install aswfdocker and dependencies with pipenv
run: pipenv install
- name: Free up disk space
run: |
sudo apt-get remove -y '^llvm-.*'
sudo apt-get remove -y 'php.*'
sudo apt-get remove -y '^cpp.*'
sudo apt-get remove -y '^g\+\+.*'
sudo apt-get remove -y '^clang.*'
sudo apt-get remove -y '^gfortran.*'
sudo apt-get remove -y google-cloud-sdk google-chrome-stable firefox powershell mono-devel monodoc-http
sudo apt-get autoremove -y
sudo apt-get clean
rm -rf /usr/share/dotnet/
df -h
- run: |
set -ex
pipenv run aswfdocker \
--repo-uri $GITHUB_REPOSITORY \
--source-branch $GITHUB_REF \
--verbose \
build \
--ci-image-type IMAGE \
--group common \
--version ${{ matrix.common_version }}
name: Optionally build local ci-common Docker Image for downstream images
if: ${{ matrix.name != 'common' }}
- run: |
set -ex
pipenv run aswfdocker \
--repo-uri $GITHUB_REPOSITORY \
--source-branch $GITHUB_REF \
--verbose \
build \
--ci-image-type ${{ matrix.type }} \
--group ${{ matrix.name }} \
--version ${{ matrix.version }} \
--push NO
name: Build Docker Images
- run: |
set -ex
export DOCKER_ORG=`aswfdocker --repo-uri $GITHUB_REPOSITORY --source-branch $GITHUB_REF getdockerorg`
test_script=scripts/test/${{ matrix.version }}/test_${{ matrix.test }}.sh
if [ -f $test_script ]
then
echo "Going to run ${test_script}"
echo "docker run -i --rm ${DOCKER_ORG}/ci-${{ matrix.test }}:${{ matrix.version }} run < ${test_script}"
docker run -i --rm \
-v $(Pipeline.Workspace)/cache/ci-image_${{ matrix.name }}_${{ matrix.version }}/ccache:/tmp/ccache \
${DOCKER_ORG}/ci-${{ matrix.test }}:${{ matrix.version }} run < ${test_script}
else
echo "No test script found $test_script"
fi
name: Run test script ${{ matrix.version }}/test_${{ matrix.test }}.sh to check Docker image
if: ${{ matrix.test != '' }}