Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/_SOT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ jobs:
secrets:
github-token: ${{ secrets.GITHUB_TOKEN }}

check-docker:
name: Check SOT Docker
needs: check-bypass
#uses: ./.github/workflows/_docker.yml
with:
docker-image-file: Dockerfile.cuda9_cudnn7_gcc48_py35_centos6
steps:
run:
bash ci/check_docker_image.sh


build-and-test:
name: Build and Test
needs: check-bypass
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/_docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: PR-CI-SOT

on:
workflow_call:

defaults:
run:
shell: bash

jobs:
check-docker:
name: Check Docker Image
runs-on:
group: Docker-build

run: |
bash ./tools/dockerfile/ci_dockerfile.sh
DOCKER_IMAGE=md5sum ${docker-image-file}
12 changes: 12 additions & 0 deletions ci/check_docker_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,15 @@
# bash ci_dockerfile.sh
# docker build -t ${docker-image} -f ${dockerfile} .
# fi

echo Dockerfile: ${docker-image-file}
bash tools/dockerfile/ci_dockerfile.sh
docker-md5=`md5sum ${docker-image-file}`
docker-name=ccr-2vdh3abv-pub.cnc.bj.baidubce.com/ci/paddle:${docker-md5}

set +e
docker pull ${docker-name}
if [ $? -eq 0 ];then
echo use docker
fi
set -e
Loading