.
All checks were successful
Build and Push Docker Images / build-and-push (push) Successful in 1m17s
All checks were successful
Build and Push Docker Images / build-and-push (push) Successful in 1m17s
This commit is contained in:
parent
45f30281c6
commit
bb7f9e2287
@ -32,21 +32,13 @@ jobs:
|
||||
-t ${{ env.REGISTRY }}/${{ env.BASE_IMAGE_NAME }}:${{ github.ref_name }} \
|
||||
./images/base
|
||||
|
||||
- name: Debug mount
|
||||
run: |
|
||||
echo "Runner-side:"
|
||||
ls -la ${{ github.workspace }}/tests
|
||||
echo "Container-side:"
|
||||
docker run --rm -v ${{ github.workspace }}/tests:/tests -w /tests ${{ env.REGISTRY }}/${{ env.BASE_IMAGE_NAME }}:${{ github.ref_name }} ls -la /tests
|
||||
|
||||
- name: Test Base image
|
||||
run: |
|
||||
docker run --rm \
|
||||
-u root \
|
||||
-v ${{ github.workspace }}/tests:/tests \
|
||||
-w /tests \
|
||||
${{ env.REGISTRY }}/${{ env.BASE_IMAGE_NAME }}:${{ github.ref_name }} \
|
||||
python3 /tests/base.py
|
||||
cid=$(docker create -u root -w /tests ${{ env.REGISTRY }}/${{ env.BASE_IMAGE_NAME }}:${{ github.ref_name }} sleep 60)
|
||||
docker start "$cid"
|
||||
docker cp ${{ github.workspace }}/tests/. "$cid":/tests
|
||||
docker exec "$cid" python3 /tests/base.py
|
||||
docker rm -f "$cid"
|
||||
|
||||
- name: Tag Base image as latest
|
||||
run: |
|
||||
@ -69,10 +61,11 @@ jobs:
|
||||
|
||||
- name: Test Jupyter dependencies
|
||||
run: |
|
||||
docker run --rm \
|
||||
-v ${{ github.workspace }}/tests:/tests \
|
||||
${{ env.REGISTRY }}/${{ env.JUPYTER_IMAGE_NAME }}:${{ github.ref_name }} \
|
||||
python3 /tests/dependencies.py
|
||||
cid=$(docker create -w /tests ${{ env.REGISTRY }}/${{ env.JUPYTER_IMAGE_NAME }}:${{ github.ref_name }} sleep 60)
|
||||
docker start "$cid"
|
||||
docker cp ${{ github.workspace }}/tests/. "$cid":/tests
|
||||
docker exec "$cid" python3 /tests/dependencies.py
|
||||
docker rm -f "$cid"
|
||||
|
||||
- name: Tag Jupyter image as latest
|
||||
run: |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user