ops: Fix CICD docker usage #4
@@ -43,6 +43,7 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
file: builder.Dockerfile
|
file: builder.Dockerfile
|
||||||
tags: cproject-builder:latest
|
tags: cproject-builder:latest
|
||||||
|
push: false
|
||||||
outputs: type=docker,dest=/tmp/docker/${{ runner.os }}-builder-image.tar
|
outputs: type=docker,dest=/tmp/docker/${{ runner.os }}-builder-image.tar
|
||||||
-
|
-
|
||||||
name: Upload docker image
|
name: Upload docker image
|
||||||
@@ -54,18 +55,16 @@ jobs:
|
|||||||
retention-days: 3
|
retention-days: 3
|
||||||
-
|
-
|
||||||
name: Build library
|
name: Build library
|
||||||
uses: https://git.brocklobsta.net/brock/docker-run-action@v5
|
uses: https://github.com/addnab/docker-run-action@v3
|
||||||
with:
|
with:
|
||||||
tarball: /tmp/docker/${{ runner.os }}-builder-image.tar
|
|
||||||
image: cproject-builder:latest
|
image: cproject-builder:latest
|
||||||
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"
|
||||||
-
|
-
|
||||||
name: Test library
|
name: Test library
|
||||||
uses: https://git.brocklobsta.net/brock/docker-run-action@v5
|
uses: https://github.com/addnab/docker-run-action@v3
|
||||||
with:
|
with:
|
||||||
tarball: /tmp/docker/${{ runner.os }}-builder-image.tar
|
|
||||||
image: cproject-builder:latest
|
image: cproject-builder:latest
|
||||||
options: --volumes-from ${{ env.JOB_CONTAINER_NAME }}
|
options: --volumes-from ${{ env.JOB_CONTAINER_NAME }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user