ops: Fix CICD docker usage #4
@@ -67,16 +67,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: /tmp/docker
|
path: /tmp/docker
|
||||||
key: ${{ runner.os }}-docker-${{ steps.dockerfile-hash.outputs.hash }}
|
key: ${{ runner.os }}-docker-${{ steps.dockerfile-hash.outputs.hash }}
|
||||||
-
|
|
||||||
name: Load image
|
|
||||||
run: |
|
|
||||||
docker load --input /tmp/docker/${{ runner.os }}-builder-image.tar
|
|
||||||
docker image ls -a
|
|
||||||
-
|
-
|
||||||
name: Build library
|
name: Build library
|
||||||
uses: https://github.com/addnab/docker-run-action@v3
|
uses: https://github.com/addnab/docker-run-action@v3
|
||||||
with:
|
with:
|
||||||
image: cproject-builder:latest
|
image: /tmp/docker/${{ runner.os }}-builder-image.tar
|
||||||
options: --volumes-from ${{ env.JOB_CONTAINER_NAME }}
|
options: --volumes-from ${{ env.JOB_CONTAINER_NAME }}
|
||||||
run: |
|
run: |
|
||||||
/bin/bash -c "cd ${{ github.workspace }}; rm -rf build; cmake -B build; cmake --build build"
|
/bin/bash -c "cd ${{ github.workspace }}; rm -rf build; cmake -B build; cmake --build build"
|
||||||
|
|||||||
Reference in New Issue
Block a user